- 5
- 0
- 约1.8千字
- 约 5页
- 2023-11-08 发布于北京
- 举报
if you know what events you want to add to your map when you initially create the map object.
function alert_on_zoom(event){
alert(You finished zooming);
}
map = new OpenLayers.Map(map_element, {
eventListeners: {
zoomend: alert_on_zoom
}
});
we can set it after the map object has been created.
map.events.register(type, object, listener);
function alert_on_zoom(
原创力文档

文档评论(0)