Select to view content in your preferred language

Enhanced Draw Widget for FlexViewer 2.1

4747
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
RobertScheitlin__GISP
MVP Emeritus
Alex,

   Nope, it was a lot more complicated than I imagined and not enough free time...
0 Kudos
AlexJones
Emerging Contributor
I was able to write a simple python script to do this. I needed it quickly so I hard coded a bunch on "known" values. I am going to try and take some time this week to clean it up and post it. There is a nice built in json module in python and you can then use json.loads()
0 Kudos
NathanEnge
Esri Contributor
Robert, the ESRI rotation works for all the shapes, except for a drawn rectangle. Do you know why this is?
Also, is there the ability get the running total of a length of a segment as you add vertices to a shape?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nathan,

   A rotated extent is no longer an extent it is a polygon...

Running length is very dependent on the particular Spatial Reference you are using so this has not been added natively to the draw widget. Some people have worked out the math for their particular WKID and posted that code. I don't remember the post link though.
0 Kudos
NathanEnge
Esri Contributor
Nathan,

A rotated extent is no longer an extent it is a polygon...

Running length is very dependent on the particular Spatial Reference you are using so this has not been added natively to the draw widget. Some people have worked out the math for their particular WKID and posted that code. I don't remember the post link though.



That make sense to me. thanks
I've been searching for the code for the second running length, but have not found. will try the old forum.
Do you know if possible to implement direction/bearing and length when drawing line or poly feature? like a context menu item?
0 Kudos
PaulLang
Deactivated User
I would like to calculate and label the the polyline measurements by indivual segments. 
Has anyone attempted this yet?
0 Kudos
HalilSiddique
Frequent Contributor
Hi Robert,

I've downloaded your widget and does exactly what I need it to do, but some of the users are asking whether its possible to rotate text, is this possible?

Cheers

Halil
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Halil,

   That has been added in version 2.3.2
0 Kudos
HalilSiddique
Frequent Contributor
Robert,

Thanks for adding that in, but im being a bit thick here...... I can move the text but not rotate it (im on http://gis.calhouncounty.org/FlexViewer2.3.1/index.html?config=config-eDraw.xml)  what do I have to do to rotate?

Cheers.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Halil,

     I did not upload the new widget to my live preview site yet I only updated the download. The text and point marker can have their angle/rotation set in the widget dialog, but as there is no point rotation support for the editTool that means that there is no interactive rotation like the polygon and line have. Maybe interactive point rotation will be included in the 2.4.1 API. It is to late for it to be added to the 2.4 API.
0 Kudos