每周五分钟openlayers使用地图接入两种方法eventlisteners.pdfVIP

  • 5
  • 0
  • 约1.8千字
  • 约 5页
  • 2023-11-08 发布于北京
  • 举报

每周五分钟openlayers使用地图接入两种方法eventlisteners.pdf

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)

1亿VIP精品文档

相关文档