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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...