Javascript OpenLayers before zoom event listener

前端 未结 5 1942
醉酒成梦
醉酒成梦 2021-02-09 03:46

I am trying to set up OpenLayers to not display the vector layer just before a zoom starts and make it reappear after a zoom ends. I have the zoom ends part already established

5条回答
  •  鱼传尺愫
    2021-02-09 04:08

    For this purpose you should override moveTo and moveByPx methods of OpenLayers.Map for eliminate movestart event triggering for any actions except zooming.

提交回复
热议问题