<esri:DrawTool id="myDrawTool" drawEnd="drawEndHandler(event)" map="{map}"/>
ViewerContainer.getInstance().mapManager.map;
I created a drawTool in the index.mxml of flex viewer as the following. I need to use the map in the MapManager.mxml, I want it to be binded. I also tried map = {com.esri.viewer.managers.MapManager.map}, but it does not work either. <esri:DrawTool id="myDrawTool" drawEnd="drawEndHandler(event)" map="{map}"/> How do I get access to the "map" in the flex viewer's environment? In Flex API sample, user can create <esri:Map> themselves, but here what should I do? Thanks!
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.