如果我想打开浏览器访问Google Maps并居中显示单个标记,我会使用如下URL:
https://www.google.com/maps/place//@33.91729,-106.85761,10z/data=!4m2!3m1!1s0x0:0x0
但是,我想在同一张地图上显示5-10个经度/经度对。如何显示仅在URL中指定的多个经度/经度标记?
发布于 2016-09-04 06:40:38
有一篇最新的文章(更新时间:2017年5月18日)是关于使用新的谷歌地图的easily linking to locations and directions。
您可以使用方向服务并形成一个url as such。
https://www.google.com/maps/dir/33.93729,-106.85761/33.91629,-106.866761/33.98729,-106.85861
在标记之间使用双斜杠"//“以保留位置为空,例如设置自定义起点。
更新
还有另一篇很棒的文章here
发布于 2019-03-06 23:12:11
嗯,没有方向也是可能的。只需在末尾添加: //@。示例:
https://www.google.com/maps/dir/33.93729,-106.85761/33.91629,-106.866761/33.98729,-106.85861//@34.0593359,-106.7131944,11z
发布于 2021-11-29 22:00:22
我只想补充一点,Yandex.Maps确实提供了没有API键的this feature。语法非常简单:https://yandex.ru/maps/?ll=[center longitude],[center latitude]&pt=[longitude1],[latitude1]~[longitude2],[latitude2]&z=[zoom level]&l=map
例如:
https://yandex.ru/maps/?ll=30.310182,59.951059&pt=30.335429,59.944869~30.34127,59.89173&z=12&l=map
https://stackoverflow.com/questions/35400664
复制相似问题