Dashboards & Visualizations

Splunk Dashboard Studio - Map - Center

j01am
Explorer

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": [
            0,
            0
        ]
    },
    "dataSources": {
        "primary": "ds_search_1_new"
    },
    "title": ""
}

 

 

 

Labels (2)

ferdousfahim
Engager

Facing the same problem, I notice the issue is a year old..

0 Karma
Get Updates on the Splunk Community!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...