yur*_*tos 27 html maps google-maps google-maps-embed
我需要在嵌入地图上放置几个由坐标指定的标记.我知道如何为一个标记做这个,但不知道多个.
<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
src="https://www.google.com/maps/ms?msid=204293175747830583907.0005022420ef3bca6a816&msa=0&ie=UTF8&t=m&ll=40.79042,-73.945541&spn=0.462677,1.056747&output=embed"></iframe>
Run Code Online (Sandbox Code Playgroud)
wil*_*ies 48
谷歌地图iframe嵌入你不能这样做.
您需要使用Google Maps Map Maker(http://www.google.com/maps/mm)执行此操作,或者需要使用Google Maps API(https://developers.google.com/maps/).
Google Maps地图制作工具的缺点是,您需要在需要进行更改时手动返回并重新创建地图.
我建议使用Google Maps API.
这是一个很棒的小教程,使用Google Maps API向您展示一个包含多个标记的简单地图 - http://wrightshq.com/playground/placing-multiple-markers-on-a-google-map-using-api-3 /