Select to view content in your preferred language

Coordinate not coming through on map click

515
1
04-23-2012 07:35 AM
MikeDuppong
Emerging Contributor
We're experiencing an issue with 10.1 where we can't seem to get the proper coordinates on a map click event when the sketch graphic layer is added to the map, the current map action is set to an addVertexSketchTool, and the sketchGraphicLayer.Geometry member is set to a point.  The sketchGraphicLayer.Geometry.CurrentCoordinate X&Y values are NaN. 

However, the X&Y values do come through on a map double-click event.

Is this a bug in ArcMobile?

Basically doing this:

Open mobile cache
Sync with server
map.CurrentMapAction = addVertexSketchTool
Add map layers
Create a new SketchGraphicLayer
map.MapGraphicLayers.Add(sketchGraphicLayer)
sketchGraphicLayer.Geometry = new ESRI.ArcGIS.Mobile.Geometries.Point()

Then, in map_Click(), _sketchGraphicLayer.Geometry.CurrentCoordinate.X (and Y) = NaN
0 Kudos
1 Reply
TerryOD
Regular Contributor
Hi there, did you manage to get a solution to this?
0 Kudos