Selecting a default location
Last updated
Last updated
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:
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.