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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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