Hi Justin , Do we have an option to Save the Current drawn graphic to a file or Load them back so that they will be the persistent graphics. ?
Derek, So you attempted to adjust what in these lines of the GlowFilter?<s:GlowFilter id="glowFilter" alpha="1" color="{getStyle('focusColor')}" inner="true" strength="2"/>how about something like this:<s:GlowFilter id="glowFilter" alpha="1" color="0xff0000" inner="true" strength="3"/>
<s:GlowFilter id="glowFilter" alpha="1" color="{getStyle('focusColor')}" inner="true" strength="2"/>
<s:GlowFilter id="glowFilter" alpha="1" color="0xff0000" inner="true" strength="3"/>
Derek, The graphical buttons use a glow filter that just applies a white subdued glow to the image. You will have to adjust the GlowFilter to something thatg works with your viewers color scheme (Or adjust your color scheme).
switch (drawType) { case DrawTool.MAPPOINT: { drawingPolygon = drawingLine = false; addingText = selectedDrawingIcon.id == "text"; drawingPoint = !addingText; showMeasurements = drawingPoint = !addingText; PointXY = true; drawMode = addingText ? TEXT_MODE : null; drawStatus = (drawMode == TEXT_MODE) ? addTextLabel : drawPointLabel; setMapAction(drawType, drawStatus, null, map_drawEndHandler); break; } case DrawTool.POLYLINE: { drawingPoint = addingText = drawingPolygon = PointXY = false; drawingLine = showMeasurements = true; drawStatus = drawLineLabel; setMapAction(drawType, drawStatus, lineSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.FREEHAND_POLYLINE: { drawingPoint = addingText = drawingPolygon = PointXY = false; drawingLine = showMeasurements = true; drawStatus = drawFreehandLineLabel; setMapAction(drawType, drawStatus, lineSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.EXTENT: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawRectangleLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.CIRCLE: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawCircleLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.ELLIPSE: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawEllipseLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.POLYGON: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawPolygonLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } case DrawTool.FREEHAND_POLYGON: { addingText = drawingPoint = drawingLine = PointXY = false; drawingPolygon = showMeasurements = true; drawStatus = drawFreehandPolygonLabel; setMapAction(drawType, drawStatus, fillSymbol, map_drawEndHandler, map_drawUpdateHandler, false, false); break; } }
All, Next version of the eDraw widget is available:Version 3.3.2 - 5/17/2013* Fixed an issue where it was extremely difficult to select and move text placed by the widget.
private function map_mouseUpHandler(event:MouseEvent):void { //My Add if(event.target is FTETextField){ if(event.target.parent !== editGraphic){ map.removeEventListener(MouseEvent.MOUSE_UP, map_mouseUpHandler); map.removeEventListener(MouseEvent.MOUSE_MOVE, map_mouseMoveHandler); stopEditing(); }else{ return; } } //End My Add if (event.target !== editGraphic) { map.removeEventListener(MouseEvent.MOUSE_UP, map_mouseUpHandler); map.removeEventListener(MouseEvent.MOUSE_MOVE, map_mouseMoveHandler); stopEditing(); } }
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.