DefaultProperty metadata
Looking back at the last post, yea... it is nice to MXML, but it is a bit ugly and verbose till I remembered the [DefaultProperty("xxxx")] metadata. Adjusted my local copy and what you will get is this:
WDYT ? oh and BTW, hoping to put this for the next release :-)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:awx="http://www.arcwebservices.com/v2007/awx"
layout="absolute"
>
<awx:Framework/>
<awx:Map createDefaultLayers="false">
<awx:PolygonLayer>
<awx:Polygon>
<awx:PolygonShape>
<awx:GeoPoint x="45" y="45"/>
<awx:GeoPoint x="45" y="-45"/>
<awx:GeoPoint x="-45" y="0"/>
</awx:PolygonShape>
</awx:Polygon>
</awx:PolygonLayer>
</awx:Map>
</mx:Application>
WDYT ? oh and BTW, hoping to put this for the next release :-)
Blogged with Flock
Comments