Dashboards & Visualizations

GoogleMaps center param doesn't seem to work

beaumaris
Communicator

I've tried setting the center parameter in my advanced XML and it does not seem to have any effect - the map still seems to come up with the default center location. My XML looks like this, which should put the US up centered in the window. Any inputs on what might be wrong will be greatly appreciated. I'm running with Splunk 4.2.1 and the latest GoogleMaps 1.1 app. We have a dashboard with multiple panels on it, this is the XML for just one of the panels.

<module name="GenericHeader" layoutPanel="panel_row2_col1" autoRun="True">
  <param name="label"> </param>
    <module name="HiddenSearch" group="Server Location" autoRun="True" layout_panel="panel_row2_col1">
     <param name="search">`Populate_Server_Location_Map_60m()`</param>
       <module name="GoogleMaps">
         <param name="autoPostProcess">false</param>
         <param name="height">500px</param>
         <param name="mapType">terrain</param>
         <param name="mapTypeControl">on</param>
         <param name="navigationControl">on</param>
         <param name="scaleControl">on</param>
         <param name="scrollwheel">off</param>
         <param name="zoomLevel">4</param>
         <param name="center">37.27,-97.12</param>
       </module>
     </module>
   </module>
0 Karma

eduardoalmeida
New Member

Hi,
I was having the same problem, removing the

    <param name="scaleControl">on</param>

fixed the problem.

0 Karma

jeffgoot
New Member

I'm having the same issue. Where you able to get it to work? What did you have to do?

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...