All Apps and Add-ons

Need to add a zoom level and center to google maps module

anthony_copus
Explorer

Hi,

I've currently got a google maps module but I'm unable to add a zoom level and center to it. How can I do this? Currently my module looks like this:

                                    <module autoRun="True" group="Venue" name="HiddenSearch">
                                        <param name="search">search is here</param>
                                        <module name="SimpleResultsHeader">
                                            <param name="entityName">events</param>
                                            <param name="headerFormat">Found %(count)s users $time$</param>
                                            <module name="GoogleMaps">
                                                <param name="height">600px</param>
                                                <param name="scrollwheel">off</param>
                                                <param name="mapType">splunk</param>
                                                <param name="mapStyles">splunk,satellite</param>
                                                <param name="autoPostProcess">off</param>
                                                <param name="drilldown">true</param>
                                                <param name="overlay">clusters</param>
                                                <param name="overlay.style">m</param>
                                                <param name="overlay.rangeMap">0, 50, 200, 500, 5000</param>
                                                <param name="overlay.roundQuantity">true</param>
                                            </module>
                                        </module>
                                    </module>

I've tried adding:

        <param name="center">22.318478,114.17284</param>
        <param name="zoom">3</param>

But this doesn't work

Any ideas?

0 Karma
1 Solution

davebrooking
Contributor

I think this question relates to the old Google Maps app

From the documentation on Apps - All available options to the module can be found at the module reference at your Splunk instance at http://localhost:8000/modules#Splunk.Module.GoogleMaps

I think the parameter name needed to control zooming is zoomLevel

If I've got it totally wrong what version of Splunk are you running?

View solution in original post

davebrooking
Contributor

I think this question relates to the old Google Maps app

From the documentation on Apps - All available options to the module can be found at the module reference at your Splunk instance at http://localhost:8000/modules#Splunk.Module.GoogleMaps

I think the parameter name needed to control zooming is zoomLevel

If I've got it totally wrong what version of Splunk are you running?

anthony_copus
Explorer

Nope, you got it right. Thanks

0 Karma
Get Updates on the Splunk Community!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...