在infowindow谷歌地图中更改所需的内容 [英] change required in infowindow google map

查看:132
本文介绍了在infowindow谷歌地图中更改所需的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是代码

here is the code

var infowindow".$marker->userid." = new google.maps.InfoWindow({
content: userHtml".$marker->userid."
})
google.maps.event.addListener(marker".$marker->userid.", 'click', function() {
infowindow".$marker->userid.".open(map".$module->id.",marker".$marker->userid.");
});
google.maps.event.addListener(map".$module->id.", 'click', function(){
infowindow".$marker->userid.".close();
});



上面的代码的问题是它显示了小型迷你配置文件html,我想像下面那样实现它.有什么办法吗?

我想这样 www.bkdesign.ca/index.php/maps/maps- custom-info-window/ [ ^ ]


任何建议



problem with above code is it shows the small mini profile html and i want to implement it like below. is there any way available.

i want it this way www.bkdesign.ca/index.php/maps/maps-custom-info-window/[^]


any suggestion

推荐答案

marker->用户ID." = google.maps.信息窗口({ 内容:userHtml "
marker->userid." = new google.maps.InfoWindow({ content: userHtml".


marker-> userid." }) google.maps.事件 .addListener(marker "
marker->userid." }) google.maps.event.addListener(marker".


marker->用户ID." ,' 点击',function(){ infowindow "
marker->userid.", 'click', function() { infowindow".


这篇关于在infowindow谷歌地图中更改所需的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆