Select to view content in your preferred language

Draw Show Measurements not working

2532
3
10-26-2012 05:21 AM
EmmaAlterton1
Deactivated User
Hello

I added the standard Draw & Measure tool to a Flex Viewer application - all worked fine.

I then added the Coordinate Menu widget to the site so that I had copy and go to XY options in the context menu when I right clicked on the map.

To get the Coordinate Menu tool to work I started the in built Geometry Service and pointed the site and the config.xml to this geometry service. The Coordinate Menu works fine, the corrdinates in the bottom of my screen work fine, however the Draw tool errors when the Show Measurements option is ticked.

The error message is:
[FaultEvent fault=[RPC Fault faultString="Error executing project" faultCode="500" faultDetail=""] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]

Have I missed something - I'm using ArcGIS Server 10.1.
Any ideas would be much appreciated as I'm completely stumped by this

Thanks
Emma
Tags (2)
0 Kudos
3 Replies
RhettZufelt
MVP Notable Contributor
Since you mention the "Show Measurements" checkbox, I'm going to assume that you are NOT using the "standard" Draw and Measure tool, but instead are using the eDraw tool?

If so, have you edited the eDrawWidget.xml to include your geometry service AND the WKID of you map?

R_
0 Kudos
EmmaAlterton1
Deactivated User
I'm using the Flex Viewer application builder Draw Tool - I've not added a custom widget to the application builder, just using the 'out of the box' one. According to the tag reference info on the resources centre the geometry service is picked up from the main config.xml file and the wkid is not needed to be specified.

Emma
0 Kudos
RhettZufelt
MVP Notable Contributor
Ah, application builder, didn't realize that.

I normally don't use that, but have installed for testing.  I do not see a coordinate menu option in the out of the box application builder, so am unable to reproduce what you have done.  I'll have to look into adding custom widgets to the builder if I get a chance.

R_


Normally, if WKID isn't specified, it is taken from the first basemap loaded.
0 Kudos