Select to view content in your preferred language

Enhanced Draw Widget for FlexViewer 2.1

6262
53
10-05-2010 02:27 PM
RobertScheitlin__GISP
MVP Emeritus
All,

    As promised I will continue to convert (most of) my old 1.x widgets to Flex Viewer 2.1.

Here is the next one my enhanced draw widget.

http://www.arcgis.com/home/item.html?id=91a0014160fc4a9caadc2c7fd7089c1b
Tags (2)
0 Kudos
53 Replies
AdamRepsher
Frequent Contributor
Just confirming.
0 Kudos
MattiasEkström
Frequent Contributor
I have a question about the saving part. When the dialog for saving the file opens the user can either just accept to default file name with the extension .txt and everything is fine. But I'm guess many users want to change the name and probably won't add the extension because they're expecting the correct extension to be added anyway. But it doesn't cause you're not saving the file as a specific file type, and then you wont be able to open it when the file filter does exists in the opening dialog.

I googled this and I didn't find anything official from Adobe, but in some forums people are saying that it is impossible to specify file type when saving because it could be a security risk (to save exe-files for example).

Is there anyone who has looked into to this and found some solution or do I just have to accept that this is how it works??

It's exactly the same thing in the PDFWidget when saving the pdf file. It annoys me.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mattias,

   In all my research, that is just the way it is.
0 Kudos
JeffLegato
Regular Contributor
Adam, 

1. Yes it is that simple 
2. Your way is fine but you could of just added abbr="wgs84dms" to what ever WKID that is returning decimal degrees 
3. Is only doable right now in the code. 

<mx:NumberFormatter id="numFormatter"
       precision="2"
       useThousandsSeparator="true"/>


I realize this is an imposition and very much appreciate all the work you do producing these widgets so I would completely understand if you don't have time but is there any way you could recompile this widget with a default value of 6 decimal places for the decimal degrees label on points? Our County can't afford Adobe Flex at the moment.

Thanks,

Jeff Legato
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   Version 2.2.3 now has that configurable in the xml file.
0 Kudos
JeffLegato
Regular Contributor
Jeff,

   Version 2.2.3 now has that configurable in the xml file.


Wow you are fast!  Myself and my users very much appreciate the enhancement!

I found this line added to the compiled_FV2.1 xml file:
<numericlabelprecision>6</numericlabelprecision>


I added that line to the compiled FV2.2 xml file as below but when I go and attempt to implement it I am not seeing any change in the number of decimal places:confused:

I hope ESRI rewards you for all your help in making their flexviewer so much better!

<?xml version="1.0" ?>
<configuration>
    <geometryservice>http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>
    <spatialref>102003</spatialref>
    <distanceunits>
        <distanceunit abbr="ft" conversion="3.2808">Feet</distanceunit>
        <distanceunit abbr="m" conversion="1">Meters</distanceunit>
        <distanceunit abbr="km" conversion=".001">Kilometers</distanceunit>
        <distanceunit abbr="mi" conversion="0.000621">Miles</distanceunit>
    </distanceunits>
    <areaunits>
        <areaunit abbr="ac" conversion="0.00024710538147">Acres</areaunit>
 <areaunit abbr="sq m" conversion="1">Square Meters</areaunit>
        <areaunit abbr="sq km" conversion="0.000001">Square Kilometers</areaunit>
        <areaunit abbr="sq ft" conversion="10.763910417">Square Feet</areaunit>
        <areaunit abbr="sq mi" conversion="0.0000003861021">Square Miles</areaunit>
        <areaunit abbr="ha" conversion="0.0001">Hectares</areaunit>
    </areaunits>
    <pointunits>
 <pointunit abbr="wgs84dd" wkid="4326">Decimal Degrees (WGS84)</pointunit>
 <pointunit abbr="spal" wkid="102629">NAD83 AL East(SP Feet)</pointunit>
 <pointunit abbr="wgs84dms" wkid="4326">DMS (WGS84)</pointunit>
 <pointunit abbr="utm19n" wkid="2960">NAD 1983 UTM 19N</pointunit>
    </pointunits>
  <numericlabelprecision>6</numericlabelprecision>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

  Try downloading again. The zip file should be named eDraw2.2.3f.zip. Hopefully that will fix it.
0 Kudos
JeffLegato
Regular Contributor
That did it Robert! 
😄
Thank you so much.  Awesome widget!

Jeff
0 Kudos
KarlWilson
Frequent Contributor
Robert,

Excellent widget as always.

Would it be possible to set the numerical precision of each point unit type individually, rather than applying one precision to all point unit types?

For example I may want my WGS84 Decimal Degrees displayed to 6 d.p. and my WGS84 UTM31N eastings/northings displayed to 0 d.p. (i.e nearest metre).

Also, would it be possible to remove the commas denoting a 1000 units - it looks a bit untidy.

I'm sure your list of requests grows longer by the day, thanks for all your hard work.

Karl
0 Kudos
AlexJones
Emerging Contributor
Cattyann,

   Well... I got to say I was not expecting this one. Currently there is no way for you to do this, but if you send me the file I will see what I can do. Depending on how difficult it is I may add a shapefile export or just develop an ArcMap Addon for this.


Robert,

Did you ever make anything for this? An add on or export option? Maybe there is another solution for reading these in ArcMap. Any info would be appreciated .

Thank you,
Alex
0 Kudos