mirror of
https://github.com/netzmacht/contao-leaflet-geocode-widget.git
synced 2026-02-28 09:08:14 +01:00
Only update radius if radius is given.
This commit is contained in:
@@ -90,7 +90,10 @@ var LeafletGeocodeCirclePicker = LeafletGeocodeAbstractPicker.extend({
|
|||||||
_updateCoordinates: function (position,radius) {
|
_updateCoordinates: function (position,radius) {
|
||||||
this.marker.pm.disable();
|
this.marker.pm.disable();
|
||||||
this.marker.setLatLng(position);
|
this.marker.setLatLng(position);
|
||||||
|
|
||||||
|
if (radius !== undefined) {
|
||||||
this.marker.setRadius(radius);
|
this.marker.setRadius(radius);
|
||||||
|
}
|
||||||
this.marker.pm.enable();
|
this.marker.pm.enable();
|
||||||
},
|
},
|
||||||
_enableEditMode: function () {
|
_enableEditMode: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user