I need to add a point (from GPS coordinate: SpatialReference is 4326) to my map that has SpatialReference as 2236. I tried the way shown below but it did not work. Could anyone show me how to make this to work? Your help is greatly appreciated.
Tom Hwang
' the coordinate from GPS device
Dim x As Double = -81.37886 ' Latitude
Dim y As Double = 28.537548 ' Longitude
Dim gra As New Graphic()
With gra
.Geometry = New MapPoint(x, y)
.Symbol = MapTip_MarkerSymbol ' a predefined symbol
.Attributes.Add("MapTipID", "ID 1") ' graphic attribute
' My map Spatial Reference is 2236 and I need to add a GPS point (4326) to the map
.Geometry.SpatialReference = New ESRI.ArcGIS.Client.Geometry.SpatialReference(4326) ' WGS84
End With
' oMapTip is a GraphicsLayer
oMapTip.Graphics.Add(gra)