Skip to content

Commit

Permalink
Merge pull request #62 from open-formulieren/feature/2177-map-interac…
Browse files Browse the repository at this point in the history
…tions

Add interaction property to component
  • Loading branch information
robinmolen authored Dec 12, 2024
2 parents 6a13055 + 8503008 commit d136774
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/formio/components/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d136774

Please sign in to comment.