mirror of
https://github.com/netzmacht/contao-leaflet-geocode-widget.git
synced 2025-12-02 05:33:40 +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) {
|
||||
this.marker.pm.disable();
|
||||
this.marker.setLatLng(position);
|
||||
this.marker.setRadius(radius);
|
||||
|
||||
if (radius !== undefined) {
|
||||
this.marker.setRadius(radius);
|
||||
}
|
||||
this.marker.pm.enable();
|
||||
},
|
||||
_enableEditMode: function () {
|
||||
|
||||
Reference in New Issue
Block a user