Shw*_*wet 6 iframe jquery google-maps
我有点奇怪的要求在iframe打开谷歌地图.我有地址,我用来传递并转换为谷歌地图.但问题是我的iframe的大小是200*200所以标记没有居中.另一个问题是标记信息窗口在几秒钟后也会弹出,这使得我的标记离开边框边界.标记从中心移动.我的代码是这样的.
$(document).ready(function(){
$("#map_address").each(function(){
var embed ='<iframe class="map_google" width="200" scrolling="no" height="200" frameborder="0" src="https:/maps.google.com/maps?&q=Ahmedabad&output=embed" marginwidth="0" marginheight="0">';
$(this).html(embed);
});
});
Run Code Online (Sandbox Code Playgroud)
我想关闭标记信息窗口并使标记变为绿色.任何帮助将不胜感激.
这是通过使用http://jsbin.com/welcome/68407/edit创建的
Dr.*_*lle 13
添加一个iwloc没有值的参数到iframe-URL:http://jsbin.com/emoyup/1/edit
网址参数说明:http://www.seomoz.org/ugc/everything-you-never-wanted-to-know-about-google-maps-parameters
| 归档时间: |
|
| 查看次数: |
16405 次 |
| 最近记录: |