@@ -30,9 +30,9 @@ export default class MapVRenderer extends BaseLayer {
3030 this . canvasLayer = layer ;
3131 this . clickEvent = this . clickEvent . bind ( this ) ;
3232 this . mousemoveEvent = this . mousemoveEvent . bind ( this ) ;
33- this . map . on ( 'movestart' , this . moveStartEvent . bind ( this ) ) ;
34- this . map . on ( 'moveend' , this . moveEndEvent . bind ( this ) ) ;
35- this . map . on ( 'zoomstart' , this . zoomStartEvent . bind ( this ) ) ;
33+ this . _moveStartEvent = this . moveStartEvent . bind ( this ) ;
34+ this . _moveEndEvent = this . moveEndEvent . bind ( this ) ;
35+ this . _zoomstart = this . zoomStartEvent . bind ( this ) ;
3636 this . bindEvent ( ) ;
3737 }
3838
@@ -72,6 +72,9 @@ export default class MapVRenderer extends BaseLayer {
7272 map . on ( 'mousemove' , this . mousemoveEvent ) ;
7373 }
7474 }
75+ this . map . on ( 'movestart' , this . _moveStartEvent ) ;
76+ this . map . on ( 'moveend' , this . _moveEndEvent ) ;
77+ this . map . on ( 'zoomstart' , this . _zoomstart ) ;
7578 }
7679
7780 /**
@@ -90,6 +93,9 @@ export default class MapVRenderer extends BaseLayer {
9093 map . off ( 'mousemove' , this . mousemoveEvent ) ;
9194 }
9295 }
96+ this . map . off ( 'movestart' , this . _moveStartEvent ) ;
97+ this . map . off ( 'moveend' , this . _moveEndEvent ) ;
98+ this . map . off ( 'zoomstart' , this . _zoomStartEvent ) ;
9399 }
94100
95101 /**
0 commit comments