Dashboards & Visualizations

Cluster Map - Map center and zoom not working



I have a strange behavior with one of my panel where i have a clustered map.
Pratically i have two imput panel, one that permit the selection of a country, and the second one who permit the selection of a city.
Depending on the city select i have two tokens that saves the respecting lat and lgt of the city, and then in the xml source i give this two toker for centering the map.

Pratically the result is blank, but if during editing before saving i go the source tab then the visualization works.
But then if i refresh the page the map doesn't appear anymore.

Hero the code that i'm using:
<query>| inputlookup Worldcities.csv      
| search city = $Area$
| dedup city
<set token="lat">$result.lat$</set>
<set token="lng">$result.lng$</set>
<set token="zoom">7</set>
<fieldset submitButton="false">
<input type="dropdown" token="country">
<query>| inputlookup Country.csv
| search name= Spain OR name = Italy</query>
<input type="dropdown" token="Area" searchWhenChanged="true">
<query>| inputlookup Worldcities.csv
| search country = $country$
| dedup city</query>

<query>(query that gives me the value needed)
| geostats latfield=Latitude longfield=Longitude globallimit=0 maxzoomlevel=13 translatetoxy=false count by test</query>
<option name="drilldown">none</option>
<option name="mapping.map.center">($lat$,$lng$)</option>
<option name="mapping.map.zoom">7</option>
<option name="mapping.type">marker</option>
<option name="refresh.display">progressbar</option>

Is something wrong with the code or it's just a bug? 
Thank you

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Maximize the Value from Microsoft Defender with Splunk

<P style=" text-align: center; "><span class="lia-inline-image-display-wrapper lia-image-align-center" ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

<FONT size="5"><FONT size="5" color="#FF00FF">Get the latest news and updates from the Splunk Community ...