File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ ``` jsx
2
+ import React from ' react' ;
3
+ import MapGL from ' @urbica/react-map-gl' ;
4
+ import Draw from ' @urbica/react-map-gl-draw' ;
5
+
6
+ < MapGL
7
+ style= {{ width: " 100%" , height: " 400px" }}
8
+ mapStyle= " mapbox://styles/mapbox/light-v9"
9
+ accessToken= {MAPBOX_ACCESS_TOKEN }
10
+ latitude= {37.78 }
11
+ longitude= {- 122.41 }
12
+ zoom= {11 }
13
+ >
14
+ < Draw / >
15
+ < / MapGL>
16
+ ```
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,7 +2,25 @@ const path = require('path');
2
2
const webpack = require ( 'webpack' ) ;
3
3
4
4
module . exports = {
5
+ title : 'Urbica React Map GL Draw' ,
6
+ moduleAliases : {
7
+ '@urbica/react-map-gl-draw' : path . resolve ( __dirname , 'src' )
8
+ } ,
5
9
require : [ path . resolve ( __dirname , 'styleguide.setup.js' ) ] ,
10
+ sections : [
11
+ {
12
+ name : 'Examples' ,
13
+ components : ( ) => [
14
+ 'docs/basic-usage.md'
15
+ ] ,
16
+ exampleMode : 'expand'
17
+ } ,
18
+ {
19
+ name : 'Props' ,
20
+ components : 'src/components/**/index.js' ,
21
+ usageMode : 'expand'
22
+ }
23
+ ] ,
6
24
dangerouslyUpdateWebpackConfig : ( webpackConfig ) => {
7
25
const envPlugin = new webpack . EnvironmentPlugin ( [ 'MAPBOX_ACCESS_TOKEN' ] ) ;
8
26
webpackConfig . plugins . push ( envPlugin ) ;
You can’t perform that action at this time.
0 commit comments