reprojecting an extent

488
3
04-27-2011 08:58 PM
RhysDonoghue
New Contributor
I copied the project and extent sample code from here:

http://resources.esri.com/help/9.3/arcgisserver/apis/Flex/samples/index.html?sample=ProjectPoint

but get this error:

"1119: Access of possibly undefined property graphics through a reference with static type com.esri.ags.event:GeometryServiceEvent"

Anyone know why?  I suspect it is because one of the namespaces has been deprecated in the example.
Tags (2)
0 Kudos
3 Replies
BjornSvensson
Esri Regular Contributor
Are you using the 2.x or 1.x API?

If you're using the 2.x API, the matching 2.x sample is at
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=ProjectPoint
0 Kudos
RhysDonoghue
New Contributor
Champion Bjorn, I should have seen this.  It's working now thanks.
0 Kudos
RhysDonoghue
New Contributor
Hi Bjorn

I got the sample working ok but having a couple of issues.  We want to use basemaps with different projections (not at the same time), i.e. WKID 102100 and WKID 2193.  I was hoping that when the user changes basemaps, I can get the current basemap extent, re-project it into the new projection and bring up the new basemap in the same location.  This is not working.  I suspect that when leaving 102100's projection and changing to 2193's projection, the map still thinks it is in 102100.  How can I get around this?  Do I have to add and remove the basemaps via Actionscript?

Rhys
0 Kudos