Select to view content in your preferred language

Editing in Web map and toggling layer visibility: single layer vs. multiple

2479
2
02-16-2011 10:35 AM
ChristinaKepler
Emerging Contributor
This may actually be more of a general REST API question, but we happen to be using the Flex API for our Web mapping application...

Our app is going to use the v10.x editing templates and enable users to add/edit/delete features.  We have a feature class with several defined types, e.g. a "buildings" layer that has types (and symbologies) for residential, commercial, multi-use, apartments, public, park, etc.  We want to be able to toggle the visibility of the individual types in the map, and also edit the features in the layer, all without having to create multiple layers for each layer type.  Having a single layer lends itself best to editing, but having several layers lends itself best to toggling -- and we don't want to have to break the layer out into several layers:  we just want one physical layer in SDE.

Is there a way to toggle visibility for different types of the same layer w/ the Flex API without having to create several layers?  Is this possible to do with subtypes or something similar?  As a last resort we could create spatial views for each type and add the view layers to the layer list so that they can be toggled, but this will still require the uber-layer of all types in the layer list so that we can edit it (and a defined workflow where we turn off all view layers when editing, and turn of the edit layer while viewing -- not ideal).

Any insights would be greatly appreciated.
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
0 Kudos
ChristinaKepler
Emerging Contributor
Perfecto, thanks!
0 Kudos