2019-10-08 19:20:12 +08:00
|
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
import * as React from 'react';
|
|
|
|
import AMap from './components/AMap';
|
|
|
|
import Mapbox from './components/Mapbox';
|
2019-11-25 15:27:56 +08:00
|
|
|
import Mixed from './components/Mixed';
|
|
|
|
import MultiAMap from './components/MultiAMap';
|
|
|
|
import MultiMapbox from './components/MultiMapbox';
|
2019-10-08 19:20:12 +08:00
|
|
|
// @ts-ignore
|
|
|
|
import notes from './Map.md';
|
2019-10-29 17:33:37 +08:00
|
|
|
// @ts-ignore
|
2019-10-24 10:38:11 +08:00
|
|
|
storiesOf('地图底图', module)
|
2019-10-08 19:20:12 +08:00
|
|
|
.add('高德地图', () => <AMap />, {
|
|
|
|
notes: { markdown: notes },
|
|
|
|
})
|
|
|
|
.add('Mapbox', () => <Mapbox />, {
|
|
|
|
notes: { markdown: notes },
|
2019-11-25 15:27:56 +08:00
|
|
|
})
|
|
|
|
.add('多个高德地图实例', () => <MultiAMap />, {
|
|
|
|
notes: { markdown: notes },
|
|
|
|
})
|
|
|
|
.add('多个 Mapbox 实例', () => <MultiMapbox />, {
|
|
|
|
notes: { markdown: notes },
|
|
|
|
})
|
|
|
|
.add('高德地图 & Mapbox 混合', () => <Mixed />, {
|
|
|
|
notes: { markdown: notes },
|
2019-10-24 10:38:11 +08:00
|
|
|
});
|