Google Maps Tile URL for HYBRID mapType tiles?

一曲冷凌霜 提交于 2019-12-20 08:04:07

问题


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.


回答1:


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:http://www.neongeo.com/wiki/doku.php?id=map_servers.

TRY: http://mt1.google.com/vt/lyrs=y&x=1325&y=3143&z=13




回答2:


For anyone who wants to save some time while looking for specific tile types:

  • h = roads only
  • m = standard roadmap
  • p = terrain
  • r = somehow altered roadmap
  • s = satellite only
  • t = terrain only
  • y = hybrid



回答3:


Hybrid Maps URL:

http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga



回答4:


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



来源:https://stackoverflow.com/questions/23017766/google-maps-tile-url-for-hybrid-maptype-tiles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!