Question
Looking for guidance on saving user data in esriMapMarkerField
I am attempting to develop a feature for my application where a user can add a pin on a map using the esriMapMarkerField component. I've used it before with readOnly enabled, but not to gather user input. It seems like I'm supposed to add the relevant saves in the "onNewPointAdded" parameter, but the documentation is sparse on specific guidance with it. I would have assumed there would be some function variable to pass into the save, but I've come up with nothing. My code so far is below... does anyone have suggestions or an example they could provide?
a!localVariables(
local!pointData: {},
esriMapMarkerField(
esriConnectedSystem: cons!MR_CS_ARC_GIS_MAP,
baseMap: "oceans",
secondaryMap: "satellite",
zoomLevel: 3,
mapCenter: { latitude: cons!MR_ESRI_MAP_CENTER_LATITUDE, longitude: cons!MR_ESRI_MAP_CENTER_LONGITUDE },
isReadOnly: false,
maxSelection: {point: 1, polyline: 0, polygon: 0},
pointData: local!pointData,
onNewPointAdded: a!save(local!pointData, )
)
)