Skip to main content

mapbox

  • Mapbox GL 512x512 pixel tiles
  • Mapbox Raster Tiles 256x256 pixel tiles
export type ViewState = {
/** Longitude at map center */
longitude: number;
/** Latitude at map center */
latitude: number;
/** Map zoom level */
zoom: number;
/** Map rotation bearing in degrees counter-clockwise from north */
bearing: number;
/** Map angle in degrees at which the camera is looking at the ground */
pitch: number;
/** Dimensions in pixels applied on each side of the viewport for shifting the vanishing point. */
padding: PaddingOptions;
};

zoom level

  • 0-22
  • 2zoom×2zoom2^{zoom} \times 2^{zoom}
zoomsee
0地球
3一个大陆
4大岛
6大河
10大路
15建筑