0

我正在尝试仅使用经度和纬度坐标(从 MySQL 数据库提供)嵌入谷歌地图。到目前为止,我已经相当成功,但我还有最后一个障碍我正在努力解决。这是我的嵌入代码:

<iframe width="250" height="193" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=<?=$result_array['lat']?>,<?=$result_array['long']?>&amp;aq=&amp;sll=<?=$result_array['lat']?>,<?=$result_array['long']?>&amp;sspn=0.000647,0.001246&amp;t=m&amp;gl=us&amp;ie=UTF8&amp;ll=<?=$result_array['lat']?>,<?=$result_array['long']?>&amp;spn=0.011505,0.018239&amp;z=15&amp;output=embed"></iframe>

我已经到了只使用一组坐标的地步,我可以在地图上查明正确的位置,但是该位置标有箭头和相关的地标。有谁知道摆脱绿色箭头的方法?

这就是我所说的:http: //jsfiddle.net/9fmwM/6/

4

2 回答 2

2

您可以使用 saddr 参数而不是 q 参数:

<iframe style="min-height: 99%; width: 100%;" 
        frameborder="0" scrolling="no" 
        marginheight="0" 
        marginwidth="0" 
        src="https://maps.google.com/maps?f=q&amp;saddr=37.42216,-122.083737&amp;source=s_d&amp;hl=en&amp;z=15&amp;output=embed"></iframe>

http://jsfiddle.net/doktormolle/kUsCP/

于 2013-01-03T11:18:05.397 回答
-1

单击此处创建不带标记的嵌入谷歌地图,然后选择选项仅显示一个区域的地图!

于 2018-09-14T13:54:54.973 回答