Map Settings

v2.20.1

The Map Settings page controls which map provider is displayed in the Supracontrol Map module and other areas of the application that show geographic data.

Path: Settings → Map Settings

Access: Only Administrators, Owners, and Superadmins can access this page.

Map provider options

ProviderDescription
OpenStreetMapA free, community-maintained map. No API key required. Best for deployments without a Google Maps licence or for air-gapped environments
Google MapsGoogle’s commercial map service. Requires a valid Google Maps API key. Offers richer map data, satellite imagery, and Street View

Map settings fields

FieldRequiredDescription
ProviderYesSelect the map provider: OpenStreetMap or Google Maps
URLYesThe tile URL for the selected provider. For OpenStreetMap, this is the tile server URL (e.g. https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png). For Google Maps, this is the Maps JavaScript API endpoint
TokenYesThe API key or access token for the selected provider. This field is masked for security

Switching map providers

1

Open Map Settings

Go to Settings → Map Settings.

2

Select the provider

In the Provider dropdown, select the desired map provider. The URL and Token fields update to reflect the selected provider’s requirements.

3

Fill in the URL and Token

Update the URL and Token fields for the selected provider.

4

Save

Click Save. After saving, the new map provider takes effect immediately across the application.

Getting a Google Maps API key

If you choose Google Maps, you need a valid API key from Google Cloud Console:

1

Create or select a Google Cloud project

Go to the Google Cloud Console and create a project or select an existing one.

2

Enable the Maps JavaScript API

Enable the Maps JavaScript API (and optionally the Maps Static API and Geocoding API) for your project.

3

Create an API key

Navigate to Credentials → Create Credentials → API Key. Copy the API key.

4

Paste the key into Supracontrol

Paste the API key into the Token field in the Map Settings page and click Save.

Tip: Optionally restrict the API key to specific IP addresses or HTTP referrers in Google Cloud Console to improve security.

Troubleshooting

ProblemLikely causeSolution
Map shows as blank/grey tilesInvalid or expired API keyVerify the Token field contains a valid, active API key
Google Maps shows “For development purposes only”Billing not configuredEnable billing in Google Cloud Console for the project
Map tiles not loadingIncorrect tile URLVerify the URL format matches the tile server’s expected pattern
Map works in one browser but not anotherBrowser cachingClear the browser cache after changing providers