您的位置:GIS门户网 GIS开发 正文
GIS网内容搜索
GIS网热门内容
GIS网推荐内容
GIS网最新内容
提出意见和建议

google map api中的事件名称和描述

GIS门户网提示:本文章共2595字,分2页,当前第1页,快速翻页:
 

Events

Events Arguments Description
addmaptype type This event is fired when a map type is added to the map.
removemaptype type This event is fired when a map type is removed from the map.
click overlay, point This event is fired when the map is clicked with the mouse. If the click was on a marker, then the marker is passed to the event handler in the overlay argument, and a click event is also fired on the marker. Otherwise, the geographical coordinates of the point that was clicked are passed in the point argument.
dblclick overlay, point This event is fired when a double click is done on the map. Notice that this event will not be fired if the double click was on a marker. The geographical coordinates of the point that was double clicked are passed in the point argument. The overlay argument is always set to null. (Since 2.83)
singlerightclick point, src, overlay? This event is fired when the DOM contextmenu event is fired on the map container. If the right click was on a marker, then the marker is passed to the event handler in the overlay argument. The pixel coordinates (in the DOM element that holds the map) of the point that was right clicked and the source element of the DOM event are passed in the point and src arguments respectively. Note that if it is a double right click and double click to zoom is enabled, then the map zooms out and no singlerightclick event is fired. If, however, double click to zoom is disabled, two singlerightclick events will be fired. (Since 2.84)
movestart none This event is fired when the map view starts changing. This can be caused by dragging, in which case a dragstart event is also fired, or by invocation of a method that changes the map view.
move none This event is fired, possibly repeatedly, while the map view is changing.
moveend none This event is fired when the change of the map view ends.
zoomend oldLevel, newLevel This event is fired when the map reaches a new zoom level. The event handler receives the previous and the new zoom level as arguments.
maptypechanged none This event is fired when another map type is selected.
infowindowopen none This event is fired when the info window opens.
infowindowbeforeclose none This event is fired before the info window closes. (Since 2.83)
infowindowclose none This event is fired when the info window closes. The event
 

收藏本页:

点这里复制本页地址发送给您QQ/MSN上的好友
相关文章

地图坐标与屏幕坐标的转换
SAAS,GIS软件的未来?
程序人生
GoogleEarth二次开发难点和技巧
实验:居心叵测的Chrome?
How Google Map Works
VC++中的Win32 Application和Win32 Console
在VC中怎样实现软件的注册机制
(转)如何使应用程序只运行一个实例
如何实现API钩子
MapXtreme产品介绍
asp读取和写入xml简单教程+实例

相关评论


GIS门户网提示:本文章所属分类:首页 GIS开发
GIS

GIS