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

Selecting a default location

PreviousAdding a map to your appNextSetting zoom levels

Last updated 4 months ago

Once you've added a map to your app, you may notice it shows an area centered on London by default. You can change this by adjusting the 'longitude' and 'latitude' fields on the MapboxMap element.

You can set static values or use a 'Do a search for' to look up values in your database:

Demo app

You can view an example of how to set a defualt location in our demo app at the link below. The relevant section is the Loading a Map section.

Bubble - Visual ProgrammingBubble
Logo