diff --git a/common/src/components/LocationSelector.vue b/common/src/components/LocationSelector.vue index 46df5735..47c5d191 100644 --- a/common/src/components/LocationSelector.vue +++ b/common/src/components/LocationSelector.vue @@ -110,6 +110,10 @@ export default defineComponent({ }; } }, + selectionEvent: { + type: String as PropType<'click' | 'dblclick'>, + default: 'click' + }, worldRadii: { type: Boolean, default: false @@ -255,7 +259,7 @@ export default defineComponent({ map.doubleClickZoom.disable(); if (this.selectable) { - map.on('click', this.onMapSelect); + map.on(this.selectionEvent, this.onMapSelect); } map.attributionControl.setPrefix('Leaflet');