Splunk Search

Disable zoom in map

mangiari
Explorer

I'd like to disable the zoom feature in a <map> element within a dashboard. Is it possible? I just want to show a fixed region of the world, but I did not found anything in the docs.

0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi mangiari,

did not try that yet, but according to docs http://docs.splunk.com/Documentation/Splunk/6.3.0/Viz/PanelreferenceforSimplifiedXML you can set the minimum zoom level and the maximum zoom level for a map using the following options:

mapping.tileLayer.minZoom 
mapping.tileLayer.maxZoom

Try setting both to the same and maybe this will achieve what you want.

cheers, MuS

View solution in original post

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi mangiari,

did not try that yet, but according to docs http://docs.splunk.com/Documentation/Splunk/6.3.0/Viz/PanelreferenceforSimplifiedXML you can set the minimum zoom level and the maximum zoom level for a map using the following options:

mapping.tileLayer.minZoom 
mapping.tileLayer.maxZoom

Try setting both to the same and maybe this will achieve what you want.

cheers, MuS

0 Karma

mangiari
Explorer

Thanks! It works!

I've already tried that using the GUI and it gave me an error, saying "The Min Zoom must be less than the Max Zoom". But forcing it with xml prevent the zoom feature, as I wanted. Thank you

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...