Reputation: 4430
I have found a basic URL structure for regular map tiles:
https://mts1.google.com/vt/lyrs=m@186112443&hl=x-local&src=app&x=1325&y=3143&z=13&s=Galile
What would be the URL structure to grab HYBRID map tiles from Google?
I don't know why I can't find this information; it seems like it should be easy to find.
Am I missing something simple? .
I have been messing with the lyrs
parameter, and I think that may be part of it. When pasting the above URL in a browser, Ive tried lyrs=r
, lyrs=h
,lyrs=t
and they give different tiles.
The closest I have come now is trying lyrs=s
. It results in a Satellite tile being returned; but I do not know what I should put in for a HYBRID result.
Maybe I am going about this all wrong.
Upvotes: 47
Views: 112829
Reputation: 31
Probably off topic, but I was facing an issue with the HTTP protocol (tiles weren't showing up), so if you see nothing, then consider using your preferred tiles with HTTPS.
Upvotes: 2
Reputation: 12592
You need an instance from the google map js class and an anonymous function then you can set the map object to give hybrid tiles:How to get your image URL tiles? (google maps). Or maybe it's lyrs=y
TRY: http://mt1.google.com/vt/lyrs=y&x=1325&y=3143&z=13
Upvotes: 26
Reputation: 161
Hybrid Maps URL:
http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga
Upvotes: 16
Reputation: 1445
For anyone who wants to save some time while looking for specific tile types:
Upvotes: 129
Reputation: 188
The truth is: there is no URL specifically that holds both satellite and street info like you see in google maps hybrid. You have to combine them. Here's an example:
https://github.com/SnakeO/mapbox-with-google-maps-hybrid-tiles
Upvotes: -8