We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3d0f4 commit bb4408eCopy full SHA for bb4408e
src/control.js
@@ -45,7 +45,7 @@
45
}
46
},
47
48
- onZoomEnd: function() {
+ _onZoomEnd: function() {
49
if (!this._selectedRoute ||
50
!this._router.requiresMoreDetail) {
51
return;
@@ -77,7 +77,7 @@
77
this._map = map;
78
this._map.addLayer(this._plan);
79
80
- this._map.on('zoomend', this.onZoomEnd, this);
+ this._map.on('zoomend', this._onZoomEnd, this);
81
82
if (this._plan.options.geocoder) {
83
container.insertBefore(this._plan.createGeocoders(), container.firstChild);
@@ -87,7 +87,7 @@
87
88
89
onRemove: function(map) {
90
- map.off('zoomend', this.onZoomEnd, this);
+ map.off('zoomend', this._onZoomEnd, this);
91
if (this._line) {
92
map.removeLayer(this._line);
93
0 commit comments