Select to view content in your preferred language

Undo/Redo operations in graphical layer

809
0
03-20-2011 11:36 PM
hemachandra
Emerging Contributor
Hi,
     How to do Undo/Redo operation with Editor component once drawn the graphics into graphical layer.
Suppose in feature layer once drawn graphics into feature layer we can able to edit the graphics by below way:
Ex:1)<esri:FeatureLayer id="points"
                           mode="snapshot"
                           outFields="*"
                           url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"/>
2)<esri:Editor id="myEditor"
                     geometryService="{new GeometryService('http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer')}"
                     map="{myMap}"
                     toolbarVisible="true"/>

3)protected function application_initializeHandler(event:FlexEvent):void
            {
                myEditor.featureLayers = [ points, fireAreas ];
            }

By same way how to do in graphical layer. Looking for your valuable inputs.

Thanks in advance.
Tags (2)
0 Kudos
0 Replies