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

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...