Select to view content in your preferred language

Populating a graphics layer with XML data

683
3
05-11-2010 07:09 AM
MikeLowe
Emerging Contributor
Hi,

I am trying to populate a GraphicsLayer with coordinates stored in an external XML file. I was wondering if this was possible, preferably without extending the GraphicsLayer component.
Tags (2)
0 Kudos
3 Replies
DasaPaddock
Esri Regular Contributor
Yes, this is similar to this sample:
http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=GeoRSSApp

You need to create Graphics with Geometries that you then add to a GraphicsLayer.
0 Kudos
RichardDiaz
Regular Contributor
Mike,

I attached a demo flex project archive and a test XML file.  The code came from here.

Rick
0 Kudos
MikeLowe
Emerging Contributor
Thanks guys, I figured it out soon after I posted this. I simply set up an HTTPService which creates graphics based on the X and Y fields of the XML file when the ResultEvent is fired.
0 Kudos