在Google Maps API v3中自定义默认的InfoWindow [英] Customize default InfoWindow in Google Maps API v3

查看:92
本文介绍了在Google Maps API v3中自定义默认的InfoWindow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以自定义当用户点击Google在其默认地图上显示的各种业务时弹出的默认InfoWindow(请参见屏幕截图)。我想添加一些功能,让人们可以在浏览地图时固定这些位置。
$ b

解决方案

目前尚不可能收听POI图标上的任何点击事件,这样就不可能覆盖/修改信息窗口。



文件a 功能请求询问它。


I am wondering if it is possible to customize the default InfoWindow that pops up when the user clicks on various businesses that Google displays on its default map (see screenie). I would like to add functionality to let people "pin" these locations if they have stumbled on them while just browsing the map.

解决方案

It is not currently possible to listen to any click event on the POI icons so overriding/modifying the info window is not possible.

File a feature request asking for it.

这篇关于在Google Maps API v3中自定义默认的InfoWindow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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