Selecting a default location

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.

Last updated