Google地图 - 仅通过网址提供多个标记 [英] Google Maps - Multiple Markers via URL only
问题描述
如果我想打开一个浏览器到谷歌地图来居中并显示一个标记,我可以使用这样的URL:
https://www.google.com/ maps / place // @ 33.91729,-106.85761,10z / data =!4m2!3m1!1s0x0:0x0
但是,我有5-10拉特/ long对,我想在同一张地图上显示。如何显示所有只在URL中指定的经度/长度标记?
有一篇最新的文章(更新日期:2016年6月4日)关于轻松链接到位置和方向使用新的Google地图。
您可以使用directions服务并形成一个url 等等:
https://www.google.com/maps/dir/33.93729,-106.85761/33.91629,-106.866761/33.98729,-106.85861
在标记之间使用双斜杠//来留下空位,例如设置一个自定义起点。
更新
此处If I want to open a browser to Google Maps to center and show a single marker, I do it with a URL like this:
https://www.google.com/maps/place//@33.91729,-106.85761,10z/data=!4m2!3m1!1s0x0:0x0
But, I have 5-10 lat/long pairs that I want to show on that same map. How can I show multiple lat/long markers all specified only in a URL?
There is an up-to-date article (updated: June 4 2016) about easily linking to locations and directions using the New Google Maps.
You could use the directions service and form a url as such:
https://www.google.com/maps/dir/33.93729,-106.85761/33.91629,-106.866761/33.98729,-106.85861
Use double slash "//" between markers to leave a position empty e.g. to set a custom start point.
Update
There is another excellent article here
这篇关于Google地图 - 仅通过网址提供多个标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!