To use maps, you need to obtain and install either a Google Maps or MapBox api key before maps can be used. See the topic Using Google Maps and OpenStreetMaps Tiles with StreamLab for more information.
The Map and Table dashboard displays two frames:
|1.||A table listing all data from the stream.|
|2.||A World Events map visualization panel displaying the locations of latitude-longitude pairs.|
You can remove or add panels through the Dashboards menu, available by clicking the SQLstream icon in the upper right corner of the panel). You can also clone any of the panels.
By default, the Map panel is generated as an World Events map visualization panel. Once you set it up, you can convert the World Events map visualization panel into a more sophisticated Pan & Zoom Map visualization panel.
To generate a Map and Table dashboard:
|1.||Select the Map and Table tab in the Custom Dashboard commands.|
|2.||Select columns for Latitude and Longitude. In order for the map to work properly, you need to verify that these columns map to real-world locations (the person managing your data should be able to verify this for you). |
|3.||Select a column for Value. This text appears when you mouse over an event on the map.|
|4.||Select a column for ID. StreamLab uses the id column to group associated events.|
|5.||If desired, select a column for Key. You can use this to color-code events in the Pan and Zoom map.|
|6.||Click the + icon to add the suggestion to the Script.|
|7.||Click the Dashboard icon in the script. The icon appears red for custom dashboards. |
|8.||The Map and Table dashboard opens.|
Once the dashboard opens, you can modify it with panel preferences or by modifying the layout.