Showing posts with label mxml. Show all posts
Showing posts with label mxml. Show all posts

Wednesday, November 21, 2007

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:

<?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

Tuesday, November 20, 2007

Creating polygons in MXML


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
xmlns:geom="com.esri.aws.awx.geom.*"
xmlns:arcwebservices="http://www.arcwebservices.com/2007/awx"
>
<arcwebservices:Framework/>
<arcwebservices:Map>
<arcwebservices:basemaps>
<arcwebservices:PolygonLayer>
<arcwebservices:Polygon>
<arcwebservices:shape>
<geom:PolygonShape>
<geom:geoPoints>
<geom:GeoPoint x="45" y="45"/>
<geom:GeoPoint x="45" y="-45"/>
<geom:GeoPoint x="-45" y="45"/>
</geom:geoPoints>
</geom:PolygonShape>
</arcwebservices:shape>
</arcwebservices:Polygon>
</arcwebservices:PolygonLayer>
</arcwebservices:basemaps>
</arcwebservices:Map>
</mx:Application>