Highlight Query Results
Good morning, I am attempting to get some query results then simply zoom to the extent and highlights the features. For some reason I'm getting a stack error every time.
First I do a query where I return geometry (set to true). Then I log my result count just to ensure there is something there. Next I simply zoom to that extent and try to highlight the features. The zoom to extent works perfectly, however the highlight features doesn't.
my command parameters are:
Command Name: AddTemporaryMarkupGeometry
Command Parameters: =$SelectedARN.features[0].geometry (where SelectedARN is the name of the query results)
Any assistance is greatly appreciated.
Thanks,
Shawn.
-
0
-
Shawn - Take a look at Highlighting Viewer Commands, rather than Markup.
http://docs.geocortex.com/essentials/gvh/2.10/commands-help/#/commands/Highlighting
0 -
Thanks for the reply, I will certainty dig into that a bit more! I assume a lot of my difficulties are stemming from the fact that I am using Web App Builder for the application, not GHV.
0 -
Shawn - Ah. yes. That won't work then. The RunCommand is specific to the Geocortex Viewer. You will need to write something specific for WAB. You might take a look at https://developers.arcgis.com/javascript/latest/sample-code/highlight-features-by-geometry/index.html, or use Arcade.
0 -
Hi Shawn,
If you're using the workflow in Web AppBuilder, you might want to go to Info > Deployment in Designer, and set the checkbox for WAB there. Doing that filters the toolbox so that the activities that only work for the Geocortex Viewer for HTML5 aren't shown. Add Graphics Layer Features is one way to draw highlights in WAB, since you can't use Run Command there.
0 -
Hi Amanda, that certainty set me on the right track! Thanks, for the assistance both of you.
Just for reference, I ended up using a modified version of example 2 from (https://docs.geocortex.com/workflow/latest/help/Default.htm#wf5/help/visualization.htm)

Thanks.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
6 kommentarer