eDraw 'Show Measurements' Bug?

740
10
Jump to solution
11-15-2012 04:55 AM
JasonStanton__GISP
Occasional Contributor
I am trying to use the eDraw widget (v3.0.2).  When I enable show measurements only the point measurements are displaying.  Line & polygon measurments are not 'drawn'.  The only change I have made is changing the spatialref in the xml to reflect my base map/layers (26986).

I feel like the answer is painfully obvious, and that I will be apologizing for being so stupid, but I have tried a number of things to get this working with no luck.

Any thoughts?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Jason,

   OK, I have fixed it in version 3.0.3 Now available for download.

View solution in original post

0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus
Jason,

   All the measurement calculations (unless you want to change those in the XML) are for projections using Meters are the unit of measurement. The easiest solution is to use the UTM projection that covers your area as the WKID and not the State Plane WKID.
0 Kudos
JasonStanton__GISP
Occasional Contributor
Robert,

Thank you for the quick response!

The State Plane WKID is in meters, so that shouldn't be the problem right?  Either way I tried your suggestion regarding the UTM projection that covers my area with no luck.  It works fine on the standard ESRI draw widget.

The problem isn't that the measurements are wrong, it's that they aren't showing up....does that matter?

Jason
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

    Did you change your geometryservice url in the eDrawWidget.xml? Are you using ArcGIS Server 10.1?
0 Kudos
JasonStanton__GISP
Occasional Contributor
yes (though it didn't work with the esri geometry service either) and yes 10.1 sp1.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Can you share your main config.xml?
0 Kudos
JasonStanton__GISP
Occasional Contributor
<?xml version="1.0" ?>
<configuration>

    <title>MRPC Base Map</title>
    <subtitle></subtitle>
    <logo></logo>
    <style>
        <colors>0xffffff,0x339966,0x3366ff,0x3366ff,0xffffff</colors>
        <alpha>1</alpha>
        <font name="Arial Narrow Bold"/>
        <font size="14"/>
        <titlefont name="Arial Narrow Bold"/>
        <titlefont size="20"/>
        <subtitlefont name="Arial Narrow Bold"/>
        <subtitlefont size="14"/>
    </style>
   
    <geometryservice url="http://mrmapper.mrpc.org/arcgis80/rest/services/Utilities/Geometry/GeometryServer"/>
   
    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
   
    <widgetcontainer layout="float">
        <widget left="25" bottom="65" icon="assets/images/Legend32.png" label="Map Legend / TOC" config="widgets/TOC/TOCWidget.xml" url="widgets/TOC/TOCWidget.swf" />
        <widget right="10" top="50" icon="assets/images/i_bookmark.png" label="Bookmarks" config="widgets/Bookmark/BookmarkWidget.xml" url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget right="10" top="270" icon="assets/images/i_draw2.png" label="Draw / Measure" config="widgets/eDraw/eDrawWidget.xml" url="widgets/eDraw/eDrawWidget.swf"/>
        <widget right="10" bottom="10" icon="assets/images/i_target.png" label="Find a Location" config="widgets/Locate/LocateWidget_MRPC.xml" url="widgets/Locate/LocateWidget.swf"/>       
        <widget left="95" top="50"  icon="assets/images/i_info.png" label="Identify" config="widgets/Identify/IdentifyWidget.xml" url="widgets/Identify/IdentifyWidget.swf"/>
        <widget left="" top="50" icon="assets/images/i_print.png" label="Export / Print" config="widgets/Print/PrintWidget.xml" url="widgets/Print/PrintWidget.swf"/>
    </widgetcontainer>
   
     <!-- UI elements -->
     <splashpage url="widgets/mySplash/SplashWidget.swf" label="                                                                                         DISCLAIMER AND TERMS OF SERVICE" config="widgets/mySplash/SplashWidget.xml"/>
        <widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50"/>
     <widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0"/>
     <widget url="widgets/StaticImage_MRPC/StaticImageWidget.swf" config="widgets/StaticImage_MRPC/StaticImageWidget.xml" right="15" bottom="45"/>
     <widget url="widgets/StaticImage_MRMapper/StaticImageWidget.swf" config="widgets/StaticImage_MRMapper/StaticImageWidget.xml" right="2" bottom="2"/>
   
    <map esrilogovisible="false" openhandcursorvisible="false" scalebarvisible="true" zoomslidervisible="false" wraparound180="true" top="40" initialextent="124000 896000 209000 944000" scale="200000" fullextent="124000 896000 209000 944000">
       
        <basemaps>
            <layer type="tiled" label="Color Orthos 2008-10" url="http://mrmapper.mrpc.org/arcgis80/rest/services/ColorOrthos_2008to2010_UPDATED/MapServer" visible="true"/>
        </basemaps>
       
        <operationallayers>
            <layer type="dynamic" label="Lakes And Ponds" url="http://mrmapper.mrpc.org/arcgis80/rest/services/LakesAndPonds/MapServer" visible="false"/>
            <layer type="dynamic" label="Streams And Rivers" url="http://mrmapper.mrpc.org/arcgis80/rest/services/StreamsAndRivers/MapServer" visible="false"/>
            <layer type="dynamic" label="NH Roadways" url="http://mrmapper.mrpc.org/arcgis80/rest/services/NH_Roadways/MapServer" visible="true"/>
            <layer type="dynamic" label="DOT Road Inventory (Non-MRPC)" url="http://mrmapper.mrpc.org/arcgis80/rest/services/DOT_RoadInventory2011_NonMRPC/MapServer" visible="true"/>
            <layer type="dynamic" label="DOT Road Inventory (MRPC)" url="http://mrmapper.mrpc.org/arcgis80/rest/services/DOT_RoadInventory2011_MRPC/MapServer" visible="true"/>
            <layer type="dynamic" label="Routes" url="http://mrmapper.mrpc.org/arcgis80/rest/services/Routes2012/MapServer" visible="true"/>
            <layer type="dynamic" label="Active Rail Lines" url="http://mrmapper.mrpc.org/arcgis80/rest/services/ActiveRailLines/MapServer" visible="true"/>
            <layer type="dynamic" label="Commuter Rail Stations" url="http://mrmapper.mrpc.org/arcgis80/rest/services/CommuterRailStations/MapServer" visible="true"/>
            <layer type="dynamic" label="Airports" url="http://mrmapper.mrpc.org/arcgis80/rest/services/Airports/MapServer" visible="true"/>
            <layer type="dynamic" label="Surrounding Communities" url="http://mrmapper.mrpc.org/arcgis80/rest/services/Surrounding_Communities/MapServer" visible="true"/>
            <layer type="dynamic" label="MRPC Communities" url="http://mrmapper.mrpc.org/arcgis80/rest/services/MRPC_Communities/MapServer" visible="true"/>
        </operationallayers>
       
    </map>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

  I actually meant the Flex Viewer Main config.xml or just the map section of it.
0 Kudos
JasonStanton__GISP
Occasional Contributor
i accidentally posted the widget config first which must be what you saw, i corrected it almost immediately, but not fast enough i guess.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   OK, I have fixed it in version 3.0.3 Now available for download.
0 Kudos