All Apps and Add-ons

Is it possible to disable "scrollWheelZoom setting" in missile map app ?

Shuhei052492
Path Finder

Hello,
I would like to disable MouseScrollsetting in missile map apps.
But the following option settings do not work for missile map apps.

-mapping.tileLayer.minZoom
-mapping.tileLayer.maxZoom
-mapping.map.scrollZoom

Addtionally, I tried changing the following "scrollWheelZoom: " of Javascript in missile map apps.

source: .../apps/missile_map/appserver/static/visualizations/missile_map/visualization.js

L.Map.mergeOptions({
// @section Mousewheel options
// @option scrollWheelZoom: Boolean|String = true
// Whether the map can be zoomed by using the mouse wheel. If passed 'center',
// it will zoom to the center of the view regardless of where the mouse was.

scrollWheelZoom: false,

However "scrollWheelZoom" setting did not work when I changed "true" to "false".

Does anyone have an idea about the setting to disable it or the zoom setting?
I would appreciate any ideas.

Best regards.

0 Karma
1 Solution

luke_monahan
Path Finder

I have just uploaded version 1.2.2 which gives you this option in the XML (although not in the user interface).

<option name="missile_map.missile_map.scrollWheelZoom">0</option>

This will control the scrollWheelZoom option in the Leaflet map initialisation.

View solution in original post

luke_monahan
Path Finder

I have just uploaded version 1.2.2 which gives you this option in the XML (although not in the user interface).

<option name="missile_map.missile_map.scrollWheelZoom">0</option>

This will control the scrollWheelZoom option in the Leaflet map initialisation.

Shuhei052492
Path Finder

Thank you for your quick response.

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 ...