How to select a feature (polyline) in HTML5 viewer and setting it as an input of a buffer function in GW5 ?
Hi, is there a way, in a geocortex workflow designer (GW5) display form, to ask the user to select a polyline feature (interactively in HTML viewer) and, when it's done, to set this selected feature as an input of an other GW5 activity ?
-
You can use a Geometry Picker on a Display Form and use the drawn geometry as input for a Query Layer activity.
You can put this query layer activity after the Display Form, but I think it is also possible to put this activity in the change event of the Geometry Picker.
0 -
Thank you for your answer... All you say is true. However, I'd like the user to select a line from an existing layer and not to draw new one...
0 -
Nico is telling you how to select from an existing layer. You need to use the Geometry Picker to get spatial user input. There are, I think, other ways to get that geometry but they will require a lot more javascript from you.
0 -
Maybe I missed something, but when you insert a geometry picker (polyline), you're asked to draw a polyline, not to select an existing one...
0 -
You can't just "select an existing one" as there are not "features" in the app to select: all you see are images generated by a server and overlayed on each other.
You must use the user drawn geometry from the geometry picker in a spatial query against the feature service. It requires two workflow activities, potentially more if you have multiple overlapping features and need users to select only one. This is the same process that the viewer uses to "select" features: they 1)capture the coordinates of a map click and 2) send the coords to the feature service to request nearby feature data (glossing over a few things).
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare