Deactivating editing toolbar for multiple features

by Maeglin77   Last Updated December 07, 2017 10:22 AM

I am creating a toolbar for a number of features as follows:

 for (var graphicNum = 0; graphicNum < graphicList.length; graphicNum++) {
        if (graphicList[graphicNum].symbol != undefined) {
            //Initializing the toolbar to be used for the feature modification process
            moveToolbarLabel = new esri.toolbars.Edit(app.map);
            moveToolbarLabel.activate(esri.toolbars.Edit.MOVE | esri.toolbars.Edit.SCALE | esri.toolbars.Edit.ROTATE, graphicList[graphicNum]);
        }
    }

The features all get the scale and rotation points around them as expected. However when I click a button to remove these scale and rotation points by deactivating the toolbar as follows:

if (moveToolbarLabel != undefined) {
        moveToolbarLabel.deactivate();
    }

the scaling and rotation points do no go. Is there any additional code that has to be included since there would be multiple toolbar due to having the toolbar activated for multiple features?



Related Questions


Cut features Tool Target box is empty

Updated July 21, 2015 18:09 PM


editing existing lines

Updated August 14, 2015 17:09 PM

File Geodatabase - Feature Save/Edit/Add Error

Updated April 17, 2016 08:09 AM

Flip selected features programmatically in QGIS?

Updated February 28, 2017 09:22 AM