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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...