Select to view content in your preferred language

Reproject point on grahics layer

684
2
06-22-2012 08:48 AM
RaoBase
Deactivated User
All my datasets are currently in British National Grid.
I have received a new dataset with Longitude and Latitude.

I would like to query this layer and display the points on a graphics layer.
However the points appear in the wrong location on the map.


for each (var graphic:Graphic in featureSet.features)
{
  graphic.geometry.spatialReference = map.spatialReference
  graphicsLayer.add(graphic);
}

Any ideas?
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
0 Kudos
ShaunWeston
Frequent Contributor
So what format is the dataset in?

I think you would have to re-project those points using a geometry service there is a sample here - http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Project_a_point/01nq0000004w000000/

...
o you would get the coordinates of the graphic, send them to the geometry service to re-project and then draw the coordinates that are returned.
0 Kudos