メインコンテンツまでスキップ

camera

The camera is the map's field of view in maps that use Mapbox GL. The camera's viewport is determined by several factors: center, zoom level, pitch, and bearing.

Center

The camera's center is the longitude and latitude at which the camera is pointed.

Zoom level

The camera's zoom level is a number that determines how close the viewport is to the surface of the map. At zoom level 0, the viewport shows continents and oceans. A middle value of 11 shows city-level details, and at a higher zoom level the map begins to show buildings and points of interest. Learn more in the zoom level glossary page.

Pitch

The camera's pitch is the visual tilt of the map, which is determined by the angle towards the horizon measured in degrees. A pitch of 0° results in a two-dimensional map, as if your line of sight forms a perpendicular angle with the earth's surface, while a greater value like 60° looks ahead towards the horizon.

Bearing

The camera's bearing is the visual rotation of the map, measured in degrees counter-clockwise from north, with a range between 0° and 360°. A bearing of 0° orients the map so that north is "up", 90° orients the map so that east is "up", and so on. Learn more in the bearing glossary page.


Related resources:

このpageは役に立ちましたか?