The [MapView
] class is a subclass of View. This viewport creates a geospatial "camera" that looks at a position on a map from a certain direction.
To render, MapView
needs to be used together with a viewState
with the following parameters:
longitude
(Number
) - longitude at the map centerlatitude
(Number
) - latitude at the map centerzoom
(Number
) - zoom levelpitch
(Number
, optional) - pitch angle in degrees. Default0
.bearing
(Number
, optional) - bearing angle in degrees. Default0
.maxZoom
(Number
, optional) - max zoom level. Default20
.minZoom
(Number
, optional) - min zoom level. Default0
.maxPitch
(Number
, optional) - max pitch angle. Default60
.minPitch
(Number
, optional) - min pitch angle. Default0
.
For more information on using View
classes, consult the Views article.
The default controller of a MapView
is MapController.
const view = new MapView({...});
MapView
takes the same parameters as the View superclass constructor.
- In the React library,
MapView
support automatic synchronization with base maps components. See DeckGL