center property
LngLat
get
center
The inital geographical centerpoint of the map. If center
is not specified in the constructor options, Mapbox GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to [0, 0]
Note: Mapbox GL uses longitude, latitude coordinate order (as opposed to latitude, longitude) to match GeoJSON.
Implementation
LngLat get center => LngLat.fromJsObject(jsObject.center);