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
  • Navigation control
  • Directions control
  • Gelocation
  1. Loading a Map

Adding controls to a map

PreviousSetting a map styleNextStructuring your database for markers

Last updated 4 months ago

There are a number of controls you can add to a Mapbox Map that will enable additional functionality.

Please note you can also add these controls via workflow actions if you prefer.

Navigation control

Setting the 'Show Navigation' field to 'yes' gives you the ability to zoom and pan the map

Directions control

Setting the 'Show Directions' field to 'yes' allows the user to get directions from a start location to an end location:

Gelocation

Setting the 'Geolocate Control' to 'yes' adds a button that can be clicked to track the current user.