Dashboards & Visualizations

Splunk Dashboard Studio - Map - Center

New Member

Hi all !

I display a map in a dashboard. The map only contains 1 point

I need to center the map dynamically for this point. But I can't do it because I'm not able to insert into the "center" value other value than integer (I tried token for example)

How can I perform it ?

Thank you a lot



My search : 



"ds_search_1_new": {
            "type": "ds.search",
            "options": {
                "query": "xxx | table lon lat",
                "queryParameters": {
                    "earliest": "$time.earliest$",
                    "latest": "$time.latest$"
                "enableSmartSources": true
            "name": "mapSearch"



My visualization : 



"viz_map_1": {
    "type": "splunk.map",
    "options": {
        "zoom": 0,
        "layers": [
                "type": "marker",
                "latitude": "> primary | seriesByName('lat')",
                "longitude": "> primary | seriesByName('lon')",
                "bubbleSize": "> primary | seriesByName('lat')"
        "center": [
    "dataSources": {
        "primary": "ds_search_1_new"
    "title": ""




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

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...