Skip to content

Type Alias: MapView

ts
type MapView = {
  mapCenter?: [number, number];
  zoomLevel?: number;
};

Deprecated

Use ViewportOptions. Will be removed in v5.0.0.

Properties

PropertyTypeDescription
mapCenter?[number, number]Coordinates of the location where map needs to center. Typically defined as an array of numbers [x, y], where x is longitude and y is latitude in EPSG:4326 system (WGS84 projection).
zoomLevel?numberThe value that specifies how far in or out the map is zoomed. It needs to be within these numbers 10 and 24