Beautiful Maps - Mapbox
  • Introduction
    • 👋Welcome
    • Key use cases
    • Key features
    • Demo apps
  • Getting Started
    • Registering for a Mapbox account
    • Install the plugin
    • Adding the access token
    • Adding a map to your app
  • Loading a Map
    • Selecting a default location
    • Setting zoom levels
    • Setting a map style
    • Adding controls to a map
  • Loading Markers
    • Structuring your database for markers
    • Adding multiple markers
    • Adding a single marker
    • Adding popups to markers
    • Using custom icons
    • Changing marker on hover
    • Removing markers from a map
    • Trigger an action when marker is clicked
  • Geolocation
    • Show the user's current location
  • Drawing Mode
    • Drawing shapes on a map
    • Saving drawings
    • Loading drawings
  • Route Navigation
    • Adding navigation
Powered by GitBook
On this page
  1. Loading a Map

Setting zoom levels

PreviousSelecting a default locationNextSetting a map style

Last updated 4 months ago

You can set the inital zoom level of the Mapbox Map by using the 'Zoom' field on the Map element:

Min/Max Zoom Levels

You can set the min and max zoom level with the Max Zoom Level and Min Zoom Level controls on the Map element. If you don't want the user to be able to zoom in or out at all, you can set both of these values to be equal to the Zoom value.

If you don't want any restrictions on the zoom level, you can leave these values blank.