Disabling create feature button in handheld viewer
Perhaps I'm missing something screamingly obvious, but I can't find a way to make the create a feature button go away on the toolbar of my HTML5 1.2 handheld viewer. There's got to be something in the handheld.json.js file I can comment out or remove. I would think it would at least be listed in the ToolbarManagedViewsViewModel list, but it's not, just the IWantToMenuView (index 0), MapView (1) and SimpleLayerListView(2) show up there. I don't have any feature layers or anything editable.
Any ideas where I should look?
Thanks, Heather
-
Hi Heather,
That button represents a "view container", which is basically a sequence of views. The toolbar button you refer to activates the editing container. If you do not wish to do any sort of editing, you can remove it be removing the view with the ID "FeatureEditingContainerView" from configuration. You'll have to do this by hand in Handheld.json.js in the configuration folder of your viewer's virtual directory.
Hope this helps!
-Jason
0 -
Thank you, Jason, removing that section of code worked.
0 -
Jason's suggestion worked for me, as well. Thank you!
0
Please sign in to leave a comment.
Comments
3 comments