File tree Expand file tree Collapse file tree 5 files changed +42
-12
lines changed
Expand file tree Collapse file tree 5 files changed +42
-12
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Storybook to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - storybook
7+
8+ permissions :
9+ contents : write
10+ pages : write
11+
12+ jobs :
13+ build-and-deploy :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v4
19+
20+ - name : Setup Node.js
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : ' 20.16.0'
24+
25+ - name : Install dependencies
26+ run : npm install
27+
28+ - name : Build Storybook
29+ env :
30+ STORYBOOK_AZURE_MAPS_KEY : ${{ secrets.STORYBOOK_AZURE_MAPS_KEY }}
31+ run : npm run build-storybook
32+
33+ - name : Deploy to GitHub Pages
34+ uses : peaceiris/actions-gh-pages@v3
35+ with :
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
37+ publish_dir : ./storybook-static
Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ const config: StorybookConfig = {
2626 name : '@storybook/react-webpack5' ,
2727 options : { } ,
2828 } ,
29- staticDirs : [ '..\\ public' ] ,
29+ staticDirs : [ '../ public' ] ,
3030} ;
3131export default config ;
Original file line number Diff line number Diff 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',
Original file line number Diff line number Diff line change 11import { 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
1611We will need 2 kinds of components to visualize data on a map:
17121 . ` <AzureMapDataSourceProvider> ` : to provide your data to the map.
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ const PolygonLayer = () => {
3636 </AzureMapsProvider>
3737 );
3838};
39-
40- export default PolygonLayer;
4139` ,
4240 } ,
4341 } ,
You can’t perform that action at this time.
0 commit comments