Optional
clearIf the value of this field should be cleared when it is conditionally hidden.
Optional
conditionalDynamically determines if the component is visible/available.
Optional
defaultOnly specified to be able to type the submission data value. We do not see a use case for pre-selecting a particular location on a map component, as the SDK asks the user for their location anyway.
Optional
defaultDefault zoom level, limited by Leaflet and the available tile service zoom levels.
Leaflet zoom level is a range of 1-20, but the Dutch tile service only supports up to level 13.
Optional
descriptionOptional
errorsAllows customizable errors to be displayed for each component when an error occurs. This is an object with the following keys: required min max minLength maxLength invalid_email invalid_date pattern custom
An object (keys listed above), values are the strings you wish to display. Each string has the {{ field }} to use within the string. Example. {"required": "{{ field }} is required. Try again."}
Optional
hiddenDetermines if the component should be within the form, but not visible. This can be overridden with the conditionals.
Optional
initialCoordinates to center the map on initially.
Optional
interactionsInteractions 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
Optional
isThe data key for this component (how the data is stored in the database, referenced as API key in docs).
The HTML label to give this component.
Optional
openOptional
overlaysOverlays to display on the map component.
Overlays are used to provide additional visual information to the map component. They can be used to show heat-maps, highlight certain points of interest, or provide additional context. WMS and WFS tile layers provide access to lower-level layers, to specify which parts of the entire data-collection should be shown in the map.
Optional
registrationOptional
showOptional
showOptional
showOptional
tileThe tile layer identifier used for the map component tile layer.
Optional
tileThe url belonging to the connected tile layer object, determined by tileLayerIdentifier.
This value should not be definable by admins, but should be fetched from the related tile layer object. This happens when fetching the component from the backend.
Optional
tooltipOptional
translatedOptional
useIf true, the backend must apply the globally configured defaults to a particular
map instance. This results in populating defaultZoom
and initialCenter
, so for
the SDK this property has no effect.
Optional
validateOptional
validateThis will perform the validation on either "change" or "blur" of the input element.
Custom Formio component type.