Multiple Editors in one map

364
2
06-06-2012 11:33 AM
SachaTousignant
New Contributor III
Hello everyone,

I have another question about editors. I'd like to know if it's possible to have 2 editors, pointing on 2 different featureLayer in the same map.

My current problem is the following : It seems I can only have one editor working at a time.
For example, I click on a feature from the #1 featureLayer, the infoWindow related to it pops, everything is fine. Then I clicked on a feature from the #2 featureLayer, it does show the same infoWindow as the first one.

Here's some code :
<!-- Onglet Info terrain -->
   <mx:VBox width="100%" height="100%" verticalGap="4" horizontalAlign="center" horizontalScrollPolicy="off">
    <mx:Label text="Ajouter un point pour l'info terrain" styleName="WidgetText" />
    

    <!-- EDITOR INFO_TERRAIN -->
    <mx:HDividedBox width="100%" height="100%" color="0x445336">
     <esri:Editor id="editorInfoTerrain" 
         geometryService="{geometryService}"
         map="{map}"
         toolbarVisible="true"
         featureLayers="{[Info_Terrain]}"
         creationComplete="editorTerrain_creationCompleteHandler(event)"/>
    </mx:HDividedBox>
    
    <!-- EDITOR FICHE -->
    <esri:Editor id="editorFiche" 
        geometryService="{geometryService}"
        map="{map}"
        visible="false"
        updateGeometryEnabled="false"
        featureLayers = "{[featureLayerFiche]}"
        addEnabled = "false"
        deleteEnabled = "false"
        creationComplete="editorFiche_creationCompleteHandler(event)"/>
    
   </mx:VBox>
Tags (2)
0 Kudos
2 Replies
SachaTousignant
New Contributor III
Nobody happen to know something?
0 Kudos
MehulChoksey
Esri Contributor
Not the best of the solutions but you could completely "cleanup" one editor before activating another one each time.
see this forum for completely cleaningup editor:
http://forums.arcgis.com/threads/26179-where-can-i-get-quot-Editor.as-quot?p=87507#post87507

Mehul
0 Kudos