Skip to content

Commit 6af588f

Browse files
committed
Update readme with html instructions
1 parent 564c1aa commit 6af588f

File tree

1 file changed

+32
-18
lines changed

1 file changed

+32
-18
lines changed

README.md

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@
1717

1818
### Proxy components (proxy between React and Mapbox API)
1919

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
3232

3333
### DOM components (normal React components)
3434

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
4141

4242
## Getting Started
4343

@@ -47,6 +47,20 @@ npm install react-mapbox-gl mapbox-gl --save
4747

4848
Example:
4949

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+
5064
```jsx
5165
// ES6
5266
import ReactMapboxGl, { Layer, Feature } from 'react-mapbox-gl';

0 commit comments

Comments
 (0)