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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...