Using Google Maps and OpenStreetMaps Tiles with StreamLab
To use maps, you need to obtain and install either a Google Maps or MapBox api key before maps can be used.
If you are using the the Pan and Zoom map visualization, StreamLab and s-Dashboard require a Google Maps API key. To retrieve an API key, please visit the following link:
Once you have a Google Maps API key, you need to restart StreamLab to incorporate it.
To do so when launching StreamLab from the command line, use a -m flag, as in:
To do so when launching StreamLab using the 'Start Streamlab Server' icon, right-click on the desktop 'Start Streamlab Server' icon, select Properties, and add the -m option to the end of the command.
You can now use the Pan and Zoom map visualization with full functionality.
Using StreamLab with OpenStreetMaps
To use OpenStreetMaps tiles, you need a Mapbox id. To design a map, go to
and sign up and design the map they want.
Each map has a map id. This gets used in the -m option preceded by 'mapbox:', as in:
All StreamLab maps will use the same tile set. In order to use a different tile set, you need to restart StreamLab with a different Mapbox id.
Setting Map Service in Environment
You can also set the map service in /etc/default/streamlabd, by setting STREAMLAB_MAP_SERVICE to 'google:<key>' or 'mapbox:<key>'.