Get location of the map's context menu
I'm trying to get the location of the map's context menu (i.e. where the user right-clicked).
This works, but surely it can't be the right way to do it?
=$getWorkflowInputs1.inputs.context.geometry.__accessor__.store._values
0
-
If it works, it ain't wrong (yet)...
0 -
Ugly comes very close to wrong IMO 😉
The good news is that there actually is a cleaner way: Use a Create Point activity with
- X: =$getWorkflowInputs1.inputs.context.geometry.x
- Y: =$getWorkflowInputs1.inputs.context.geometry.y
- Spatial Reference: =$getWorkflowInputs1.inputs.context.geometry.spatialReference
0 -
To me, one long chain of properties on an in-memory object is prettier than the overhead of an additional activity, but then I suppose that's why they say "beauty is in the eye of the beholder".
FWIW I find both options here lovely... but then I've never been accused of having good taste.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer