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 319254b commit 38bc2ecCopy full SHA for 38bc2ec
src/select.js
@@ -198,7 +198,10 @@ var Select = L.Control.extend( /** @lends Select.prototype */ {
198
this._selection = null;
199
}
200
201
- this._movingMarker.setLatLng(this._layer.getLatLngs()[0]);
+ if (this._movingMarker) {
202
+ this._movingMarker.setLatLng(this._layer.getLatLngs()[0]);
203
+ }
204
+
205
if (!this.options.useTouch) {
206
//this._movingMarker.show();
207
this._map.addLayer(this._movingMarker);
0 commit comments