From 85030080ff1224173face52b11fe2324d6e8f643 Mon Sep 17 00:00:00 2001 From: robinvandermolen Date: Tue, 3 Dec 2024 18:04:22 +0100 Subject: [PATCH] :sparkles: [open-formulieren/open-forms#2177] Added interactions property to MapComponentSchema --- src/formio/components/map.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/formio/components/map.ts b/src/formio/components/map.ts index 67eba7e..fe660e5 100644 --- a/src/formio/components/map.ts +++ b/src/formio/components/map.ts @@ -54,6 +54,18 @@ export interface MapComponentSchema * component from the backend. */ tileLayerUrl?: string; + /** + * Interactions users can use when working with the map component. + * + * These interaction options are based on the options available in leaflet draw: + * https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html#drawoptions + */ + interactions?: { + circle: boolean; + polygon: boolean; + polyline: boolean; + marker: boolean; + }; /** * If true, the backend must apply the globally configured defaults to a particular * map instance. This results in populating `defaultZoom` and `initialCenter`, so for