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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...