Zum Hauptinhalt gehen

Project a point

Kommentare

2 Kommentare

  • Permanently deleted user

    Hello Benjamin,

    If the Base Coordinate System of your site is Web Mercator, then a work around does exist. Create a MapPoint using the user input Latitude as Y and Longitude as X. Give it a Spatial Reference of WKID = 4365 (Geographic WGS84 Cooridinates). Assign the MapPoint to an ESRI Geometry. Import the ESRI.ArcGIS.Client.Projection Namespace and create a Variable named Converter of type ESRI.ArcGIS.Client.Projection.WebMercator, set its default value to "new ESRI.ArcGIS.Client.Projection.WebMercator". Assign the ESRI Geometry containing the map tip to "Converter.FromGeographic(geo)" where geo is the name of the ESRI Geometry containing the MapPoint. Your ESRI Geometry is now projected to the Web Mercator System and you can Plot it using the AddMarkup Command. 

    Hope this helps,

    Paul

    0
  • Permanently deleted user

    Paul,

    This works. Thank you very much.

    Benjamin Zank

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.