Hello everyone
I have a question that maybe someone already knows the answer to, as the topic is well-known, but unfortunately I can't find the forum.
Does anyone have or know where I can find a widget that will insert an object based on WKID coordinates?
Ideally, it could be configured to connect to the map's edit data, but if it were a temporary object, meaning it could be inserted on the map, for example, as a pin, I'd also appreciate it. Experience Builder 1.19 (Dev Edition)
This is how I see this widget working:
The user enters:
X = 123124.66
Y = 434343.46
WKID = 2177
Click "Add point"
The point:
is saved to Enterprise GDB
appears on the map
The attribute form opens automatically
identical to the "Edit" widget
The user fills in the data and saves it
Best regards, everyone
Hi @PiotrCienin
There might be a solution with the coordinates and ensuring your map is the desired coordinate system, please see the link below which you might find helpful
How To: Create a Point on a Map by Entering Coordinates into the ArcGIS Experience Builder
Something like the following JS might work
//Create a point Geometry
const point = new Point({
x: xValue,
y: yValue,
spatialReference: { wkid: wkidValue }
});
//Add the feature to the target layer
layer.applyEdits({
addFeatures: [{ geometry: point, attributes: {} }]
});