Entry Mapper.entryMapperField.After creating the field, add it to the field layout for the element type where editors need it.
Common examples:
Use Allowed asset sources to limit which asset volumes editors can choose images from.
Leave the setting blank to allow images from all asset sources.
Use source restrictions when:
The selector still restricts choices to image assets.
Use the upload settings when editors should be able to upload a new image without leaving the field:
Uploads also depend on the current user's Craft asset permissions. If a user cannot save assets in the selected volume, the upload action will not be available to them.
Use Allowed entry sources to limit which entries markers can link to.
Leave the setting blank to allow entries from all entry sources.
Use source restrictions when:
Choose a handle that describes what the mapped image represents:
{% set imageMap = entry.imageMap.process() %}
{% set image = imageMap.image.one() %}
{% set markers = imageMap.markers.all() %}The field validates that:
Coordinate values are normalized before saving, so invalid values are clamped into the 0 to 100 range.
Marker colors are normalized to valid six-character hex values. Invalid colors fall back to the default marker color.