Splunk Search

Zoom and Center Map Visualization

Path Finder

Hello,

I have a geostats with iplocation query which specifies specific regions within a country in the search. I'd like to have my map zoomed in on specific country once populated, but I'm honestly not sure how to go about doing that. Please include an example query as the documentation I've found so far hasn't been as helpful as I'd hoped.

Sorry for the undoubtedly noob question.

Thanks!

Tags (3)
0 Karma
1 Solution

Splunk Employee
Splunk Employee

This can be changed in the formatting of the visualization. You can specify location as well as zoom.

alt text

They correspond to these values in the Simple XML

<option name="mapping.map.center">(0,0)</option>
<option name="mapping.map.scrollZoom">0</option>
<option name="mapping.map.zoom">2</option>

The only option in the actual command options themselves that relates to your question is

maxzoomlevel
Syntax: maxzoomlevel=
Description: The maximum level to be created in the quad tree. Defaults to 9, which specifies that 10 zoom levels will be created: 0-9.

View solution in original post

Path Finder

Thanks to everyone who provided answers. Your help is much appreciated.

0 Karma

Path Finder

Does the Zoom on Scroll option (yes/no) only appear in certain versions? I do not have it under any of the format options. I input the line 0 in the source code, but it doesn't take away the ability to zoom while scrolling.

0 Karma

Splunk Employee
Splunk Employee

well, it at least sounds like it doesn't appear in your version - but to be honest, I'm not sure.

0 Karma

Communicator

I believe what you are looking for is hidden under the Paint Brush Icon when you are in edit panel mode of your dashboard.

  1. Zoom into the region you want the map to start.
  2. Edit Panels then select Paint Brush on your Map Panel
  3. Click Map Section
  4. Populate with current map settings
  5. Click Apply

Splunk Employee
Splunk Employee

This can be changed in the formatting of the visualization. You can specify location as well as zoom.

alt text

They correspond to these values in the Simple XML

<option name="mapping.map.center">(0,0)</option>
<option name="mapping.map.scrollZoom">0</option>
<option name="mapping.map.zoom">2</option>

The only option in the actual command options themselves that relates to your question is

maxzoomlevel
Syntax: maxzoomlevel=
Description: The maximum level to be created in the quad tree. Defaults to 9, which specifies that 10 zoom levels will be created: 0-9.

View solution in original post