How to invoke feature editing from code in html5 viewer 2.6.1
I want to be able to invoke a command to show the attribute editor view and another command to invoke "geometry editing" for the selected feature.
The closest thing I've found in the API is this:
ShowFeatureAttributeEditor
Deprecated in 2.3. The feature editor will automatically appear when editing a feature is started.
Shows the feature attribute editor used to edit feature attributes.
What is meant by "when editing a feature is started"? How do I start editing a feature from javascript?
0
-
Ok, found it. Looks like I can use the StartEditingFeature command. Not sure why this isn't in the API documentation. 0 -
Hi Adam,
What did you pass as a parameter to the StartEditingFeature command? I'm having trouble getting this to work in the HTML5 viewer 2.6.
Thanks!0 -
Hi Harold,
You need to pass in a geocortex.essentialsHtmlViewer.mapping.infrastructure.Feature object. See this question for how you can get the clicked on feature.
https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&id=90660000000XbTRAA00 -
Thanks Adam, I'll check it out. 0
Please sign in to leave a comment.
Comments
4 comments