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.
<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);
map.staticLayer.addElement(image)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.