17
17
18
18
### Proxy components (proxy between React and Mapbox API)
19
19
20
- * ReactMapboxGL
21
- * Layer & Feature
22
- * property ` symbol ` displays a mapbox symbol.
23
- * property ` line ` displays a lineString.
24
- * property ` fill ` displays a polygon.
25
- * property ` circle ` displays a mapbox circle.
26
- * property ` raster ` displays a mapbox raster tiles.
27
- * property ` fill-extrusion ` displays a layer with extruded buildings.
28
- * property ` background ` displays a mapbox background layer.
29
- * property ` heatmap ` displays a mapbox heatmap layer.
30
- * Source
31
- * GeoJSONLayer
20
+ - ReactMapboxGL
21
+ - Layer & Feature
22
+ - property ` symbol ` displays a mapbox symbol.
23
+ - property ` line ` displays a lineString.
24
+ - property ` fill ` displays a polygon.
25
+ - property ` circle ` displays a mapbox circle.
26
+ - property ` raster ` displays a mapbox raster tiles.
27
+ - property ` fill-extrusion ` displays a layer with extruded buildings.
28
+ - property ` background ` displays a mapbox background layer.
29
+ - property ` heatmap ` displays a mapbox heatmap layer.
30
+ - Source
31
+ - GeoJSONLayer
32
32
33
33
### DOM components (normal React components)
34
34
35
- * ZoomControl
36
- * ScaleControl
37
- * RotationControl
38
- * Marker (Projected component)
39
- * Popup (Projected component)
40
- * Cluster
35
+ - ZoomControl
36
+ - ScaleControl
37
+ - RotationControl
38
+ - Marker (Projected component)
39
+ - Popup (Projected component)
40
+ - Cluster
41
41
42
42
## Getting Started
43
43
@@ -47,6 +47,20 @@ npm install react-mapbox-gl mapbox-gl --save
47
47
48
48
Example:
49
49
50
+ Adding the css in your index.html:
51
+
52
+ ``` html
53
+ <html >
54
+ <head >
55
+ ...
56
+ <link
57
+ href =" https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.css"
58
+ rel =" stylesheet"
59
+ />
60
+ </head >
61
+ </html >
62
+ ```
63
+
50
64
``` jsx
51
65
// ES6
52
66
import ReactMapboxGl , { Layer , Feature } from ' react-mapbox-gl' ;
0 commit comments