没有箭头标记的Google地图嵌入

问题描述 投票:0回答:2

我试图仅使用经度和纬度坐标(从MySQL数据库提供)嵌入Google Map。到目前为止,我已经非常成功了,但是我有一个最后的障碍,我正在努力。这是我的嵌入代码:

<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/

html google-maps google-maps-api-3 google-maps-embed
2个回答
1
投票

您可以使用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/


0
投票

Click here创建一个没有标记的嵌入谷歌地图并选择选项只显示一个区域的地图!

© www.soinside.com 2019 - 2024. All rights reserved.