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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...