Dashboards & Visualizations

How to specify Google Maps URL for map tiles in Splunk?

trevorsplunky
Engager

In my app I'd like to use Google Maps instead of the default Open Street Map and Splunk maps. Splunk asks for a tile URL, but using http://maps.google.com does not work. Any idea on this gurus?

1 Solution

ikislukhin_splu
Splunk Employee
Splunk Employee

The URL for Google Maps tiles is:

https://mt.google.com/vt/lyrs=m&x={x}&y={y}&z={z}

Max Zoom Level - 22

Where lyrs=

h = roads only
m = standard roadmap
p = terrain
r = somehow altered roadmap
s = satellite only
t = terrain only
y = hybrid

View solution in original post

ikislukhin_splu
Splunk Employee
Splunk Employee

The URL for Google Maps tiles is:

https://mt.google.com/vt/lyrs=m&x={x}&y={y}&z={z}

Max Zoom Level - 22

Where lyrs=

h = roads only
m = standard roadmap
p = terrain
r = somehow altered roadmap
s = satellite only
t = terrain only
y = hybrid

martin_mueller
SplunkTrust
SplunkTrust

Splunk Maps use Leaflet underneath instead of the Google Maps API code, and apparently Google's terms of use don't allow the use of Google tiles without using the Google API.

See https://github.com/Leaflet/Leaflet/blob/master/FAQ.md#data-providers for some options of various tile providers... with the obvious caveat to comply with their specific terms 🙂

Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...