Disable Editing Geometry of Features

Discussion created by adrake on Jul 19, 2011
Latest reply on Jul 20, 2011 by adrake
Is there a simple way to disable the ability to edit the geometry of features in a FeatureLayer?  Essentially I want to load 3-5 layers in to my application, and disable the ability to add, delete, move, etc any of the features; however, I want the users to be able to update the attributes of the features.

I am working with the following sample:

In this sample there is only one layer that is being edited.  How would you do more than one?

I tried the following to change the FeatureLayer, but the attributes do not show up in the InfoWindow after I switch the FL.

FLEdit1 = ""
FLEdit2 = ""

function editSetLayer (strFeatureLayer){
 FL = new esri.layers.FeatureLayer(strFeatureLayer, {
  mode: esri.layers.FeatureLayer.MODE_SELECTION,
  outFields: ["*"]
 markerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 15, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0, 0, 255]), 0.5), new dojo.Color([0, 255, 255, 0.5]));



Any help is greatly appreciated...