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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...