Skip to content

Maps

Map your data

Let's plot the longitude and latitude data in our data set.

Creating a Map

  1. Start by selecting the Map option in the 'Search Components' pane on left hand side and dragging it into the Report

    Expression

  2. From there we can populate the right hand side menu starting in the section titled Map to begin with:

    • Here you can provide a Google Maps API Map Key
    • Centralize the map on New York by adding CenterX:40.75 and CenterY:-73.98

    Expression

    Now you have map of New York ready to plot the weather data onto.

  3. Expand Points in the right hand menu and select Data Source. You can add aggregations and groupings here to get your data ready for plotting. Change the following parameters:

    • groupBy to columns name sensor borough
    • Within agg, select Generate View State and click your new View State. To get the last latitude and longitude values for these grouped columns, follow the input from the image below and click Select Item to save:
    • Set Selected Attr:name
    • Set Latitude Data:lastlat and Longitude Data:lastlon Expression

Remember to

:fontawesome-solid-check-circle: Click Apply and Select Item to save and connect the node to the widget - Set Selected Attr:name - Set Latitude Data:lastlat and Longitude Data:lastlon from the respective drop-downs Expression

Fantastic! Now you have overlayed your weather geographic data on top of a map. This guides only touch on how to get started with Maps but we hope this will help with the initial stumbling points to continue creating insightful Reports!