Dashboards & Visualizations

How to drilldrown from longitude and latitude fields from a table to the center of a map visualization with the selected location?

leo_wang
Path Finder

I built a dashboard which has two panels: a "table" on the top and follow a "map"
The table has longitude / latitude fields and other detailed information.

What I want to do is drilldown the longitude / latitude into the map and change the map center to the location of the selected data.

Is that possible?
I guess I should write some javascript code to get the tokens and then change the map center, but I don't know how to do that in detail...

0 Karma

afishkin_splunk
Splunk Employee
Splunk Employee

Primary Panel Type: Map should have

       <drilldown>
        <set token="center">($click.lat.value$,$click.lon.value$)</set>
        <set token="bounds">($click.bounds.south$,$click.bounds.west$,$click.bounds.north$,$click.bounds.east$)</set>
        <set token="filter">latitude>=$click.bounds.south$ latitude<$click.bounds.north$ longitude>=$click.bounds.west$ longitude<$click.bounds.east$</set>
      </drilldown>

{noformat}
Secondary Panel Type: Map should have

      <search>
        <query>
          | your look up| search $filter$ | geostats latfield=latitude longfield=longitude sum(count) as count
        </query>
          </search>
      <option name="mapping.map.fitBounds">$bounds$</option>
      <option name="mapping.map.center">$center$</option>
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...