Select to view content in your preferred language

Wandering Points

665
1
07-26-2012 07:09 AM
GregKnight
Deactivated User
Hi,

I am experiencing some rather odd behavior with points Im dropping on a map.

I add some points to the default graphics layer on a map.   When I place them, they are in the right location on the map. When I zoom, the point locations change as they dont seem to be anchored to the map. 

Im not doing anything too crazy here:

   pointGeometry = new esri.geometry.Point( xCoord, yCoord, map.spatialReference );
   pointGraphic = new esri.Graphic( pointGeometry, pointSMS );
   map.graphics.add( pointGraphic, pointSMS ); 


Anyone seen this one before?

Greg
0 Kudos
1 Reply
JohnCorrea
Emerging Contributor
Greg, I know this sounds greedy but I was wondering if I could see how you actually got your points on the map. I have been trying to add my own but somehow the order of my script attempts to add the graphic before the map id is set. I always get a map.graphics.add method "not defined". Could I take a look?
0 Kudos