简体   繁体   English

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

[英]Google Maps Embedding without Arrow Marker

I'm trying to embed a Google Map solely using longitude and latitude coordinates (supplied from a MySQL database). 我试图仅使用经度和纬度坐标(由MySQL数据库提供)嵌入Google Map。 So far, I've been pretty successful, but I have one last hurdle I'm struggling with. 到目前为止,我已经相当成功,但是我遇到的最后一个障碍是。 Here's my embed code: 这是我的嵌入代码:

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

I've gotten to a point where using only one set of coordinates, I can pinpoint the right place on the map, but the place is marked with an arrow and the relevant landmark. 我已经到了只使用一组坐标的地步,可以在地图上指出正确的位置,但是该位置标有箭头和相关的地标。 Does anyone know of a way to get rid of the green arrow? 有谁知道摆脱绿色箭头的方法吗?

Here's what I'm talking about: http://jsfiddle.net/9fmwM/6/ 这是我在说的: http : //jsfiddle.net/9fmwM/6/

You may use the saddr-parameter instead of the q-parameter: 您可以使用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/ http://jsfiddle.net/doktormolle/kUsCP/

单击此处创建不带标记的嵌入Google地图,然后选择“ 仅显示区域地图 ”选项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM