geometry property (of the Graphic Class) geometry:Geometry The geometry that defines the graphic. If the geometry class is an IEventDispatcher, the Graphic will refresh itself when Event.CHANGE events on the geometry are thrown.
map.staticLayer.addElement(image)
<fx:Declarations> <s:Graphic id="mapOverlay"> <s:Group> <s:Path id="mapOverlayPath" > <s:fill> <mx:SolidColor id="ovlayColor" color="0x000000" alpha="0.8"/> </s:fill> </s:Path> </s:Group> </s:Graphic> </fx:Declarations> //This code called from some function mapOverlayPath.data = "M 0 0 v " + map.height + " h " + map.width + " v -" + map.height + " v -" + map.width + " M 100 100"; mapOverlayPath.data += " v " + (map.height - 200) + " h " + (map.width - 200) + " v -" + (map.height - 200) + " Z"; map.staticLayer.addElement(mapOverlay);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.