Select to view content in your preferred language

I am New to Silverlight and ArcGIS - Need help with MeasureTool

450
0
06-06-2013 01:21 PM
RonaldFlint
Emerging Contributor
I am new to both Silverlight and developing for ArcGIS. I've downloaded the Silverlight MeasureTool that Esri provides and have edited the MeasureTool.Web project under the solution to use a map from our map server instead of the Esri supplied map. I need to make the point tool report coordinates in both latitude/longitude and state plane coordinates (NAD83). In MeasureView.xaml under the MeasureTool.AddIns project I found:

     <local:ProjectGeometryAction
       TargetObject="{Binding DrawGeometry}"
       GeometryServiceUrl="{Binding GeometryServiceUrl}"
       OutputGeometry="{Binding MeasurableGeometry, Mode=TwoWay}"
       Error="{Binding Error, Mode=TwoWay}">
      <local:ProjectGeometryAction.OutputSpatialReference>
       <esri:SpatialReference WKID="4326" />
      </local:ProjectGeometryAction.OutputSpatialReference>

Changing WKID to "4759" (from here), nothing at all changes.

In the Invoke() method of ProjectGeometryAction, the Target seems to have the correct coordinates before it is changed elsewhere to lat/long (I believe Web Mercator). I believe this happens when GeometryService.ProjectAsync() is called in the ProjectGeometryAction.Invoke() method.

May anyone have some pointers or suggestions on how to figure this out? Your guidance is much appreciated.
0 Kudos
0 Replies