用标记在Google静态地图上绘制叠加线 [英] draw overlay line on google static map with markers

查看:188
本文介绍了用标记在Google静态地图上绘制叠加线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用此网址绘制覆盖图的地图



http://maps.google.com/maps/ api / staticmap?size = 400x400& zoom = 13& path = color:0xff0000ff | weight:5 | 40.737102,-73.990318 | 40.749825,-73.987963&sensor; false

我想添加标记来开始和结束位置..
所以我用下面的url



maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|&markers=color:蓝色|标签:S | 40.737102,-73.990318 | 40.749825,-73.987963& sensor = false



此网址显示标记,但不显示ov erlay line ..



请给我一个URL,用标记覆盖静态googlemap图片上的路线图。 解决方案

http://maps.google.com/ ?地图/ API / staticmap尺寸= 400×400和缩放= 13&安培;路径=彩色:0xff0000ff |重量:5 | 40.737102,-73.990318 | 40.749825,-73.987963&安培;标记=彩色%3ablue |标记%3AS | 40.737102,-73.990318 | 40.749825,-73.987963& sensor = false



您的路径lat / lng从第二个链接中缺失

i used this url to draw map with overlay line

http://maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|40.737102,-73.990318|40.749825,-73.987963&sensor=false

i want to add markers to start and end position.. so i used the url below

maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|&markers=color:blue|label:S|40.737102,-73.990318|40.749825,-73.987963&sensor=false

this url shows markers but not the overlay line..

please give me the url to overlay roadmap on static googlemap image with markers.

解决方案

http://maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|40.737102,-73.990318|40.749825,-73.987963&markers=color%3ablue|label%3aS|40.737102,-73.990318|40.749825,-73.987963&sensor=false

Your path lat/lng is missing from the second link

这篇关于用标记在Google静态地图上绘制叠加线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆