我想获得谷歌地图链接,显示位于纬度/经度的标记中的标题/内容.
所以参数是标题,内容,纬度,经度.结果是这样的链接 https://maps.google.com/?ie=UTF8&ll=xxx,xxx&title=xxx&content=xxx
我搜索谷歌并没有在谷歌API中找到答案,事件.
mra*_*888 92
我尝试使用iframe执行您需要的请求,以显示所需的纬度,经度和缩放的结果:
<iframe
width="300"
height="170"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0"
src="https://maps.google.com/maps?q='+YOUR_LAT+','+YOUR_LON+'&hl=es&z=14&output=embed"
>
</iframe>
<br />
<small>
<a
href="https://maps.google.com/maps?q='+data.lat+','+data.lon+'&hl=es;z=14&output=embed"
style="color:#0000FF;text-align:left"
target="_blank"
>
See map bigger
</a>
</small>
Run Code Online (Sandbox Code Playgroud)
小智 11
上面的答案都不起作用,但这会。
<iframe src="'https://maps.google.com/maps?q=' + lat + ',' + lng + '&t=&z=15&ie=UTF8&iwloc=&output=embed'" />
Run Code Online (Sandbox Code Playgroud)
小智 9
如果你使用js变量,@ vignesh单引号是在线需要的
<iframe src = "https://maps.google.com/maps?q=10.305385,77.923029&hl=es;z=14&output=embed"></iframe>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
90492 次 |
| 最近记录: |