Skip to content

Commit 2a3ba68

Browse files
Merge pull request #101 from Chia-Chi-Shen/storybook
fix data visualization introduction
2 parents ab0b7d3 + 8fc8f8f commit 2a3ba68

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

src/stories/BasicUsage/MapControls/MapControl.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ import {
7777
{
7878
controlName: 'CompassControl',
7979
controlOptions: { rotationDegreesDelta: 10, style: 'dark' },
80-
options: { position: 'top-left' } as ControlOptions,
80+
options: { position: 'bottom-right' } as ControlOptions,
8181
},
8282
]}
8383
/>
@@ -129,7 +129,7 @@ import {
129129
{
130130
controlName: 'TrafficControl',
131131
controlOptions: { incidents: true },
132-
options: { position: 'top-right' } as ControlOptions,
132+
options: { position: 'top-left' } as ControlOptions,
133133
},
134134
{
135135
controlName: 'TrafficLegendControl',

src/stories/DataVisualization/Datavisualization.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
import { Meta, Source } from '@storybook/blocks';
2-
import BubbleLayer from './BubbleLayer/BubbleLayer';
3-
import * as BubbleLayerStories from './BubbleLayer/BubbleLayer.stories';
2+
import ClusterAggregates from './ClusterAggregates/ClusterAggregates'
43

54
<Meta title="Data Visualization/Introduction"/>
65

7-
86
# Data Visualization
97
**react-azure-maps** provides a set of components to help you visualize data on a map like this: <br/>
108

11-
{/* <BubbleLayer/> */}
12-
13-
<Canvas of={BubbleLayerStories.Example} sourceState="none" />
14-
9+
<ClusterAggregates showBubbles showNumbers/>
1510

1611
We will need 2 kinds of components to visualize data on a map:
1712
1. `<AzureMapDataSourceProvider>` : to provide your data to the map.

src/stories/DataVisualization/PolygonLayer/PolygonLayer.stories.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ const PolygonLayer = () => {
3636
</AzureMapsProvider>
3737
);
3838
};
39-
40-
export default PolygonLayer;
4139
`,
4240
},
4341
},

0 commit comments

Comments
 (0)