You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/API.md
+1
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ const Map = ReactMapboxGl({
48
48
### Component Properties
49
49
-**style***(required)* : `String | Object` Mapbox map style, if changed, the style will be updated using `setStyle`.
50
50
-**center***(Default: `[ -0.2416815, 51.5285582 ]`)*: `Array<Number>` Center the map at the position at initialisation
51
+
- Must be in longitude, latitude coordinate order (as opposed to latitude, longitude) to match GeoJSON (source: https://www.mapbox.com/mapbox-gl-js/api/#lnglat).
51
52
- Re-center the map if the value change regarding the prev value or the actual center position [flyTo](https://www.mapbox.com/mapbox-gl-js/api/#Map.flyTo)
52
53
-**zoom***(Default: `[11]`)*: `Array<Number>` Zoom level of the map at initialisation wrapped in an array.
53
54
- Check for reference equality between the previous value of zoom and the new one in order to update it or not.
0 commit comments