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:http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples_start.htmIn 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 = "http://myserver.com/ArcGIS/rest/services/fledit1/0"
FLEdit2 = "http://myserver.com/ArcGIS/rest/services/fledit1/1"
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]));
FL.setSelectionSymbol(markerSymbol);
};
editSetLayer(FLEdit1);
Any help is greatly appreciated...