Select to view content in your preferred language

Coordinate Menu Widget - New !

21273
95
02-17-2011 07:51 PM
Drew
by
Frequent Contributor
Hello Everyone,
I created a new widget that you might find useful.
Tucked away in the map context menu are three XY operations

   1.     Copy XY
   2.     Project XY (configurable)
   3.     Go To XY

ReadMe.txt included

Hope you find it useful!

Click Here to demo and download the Coordinate Menu Widget

Drew
Tags (2)
0 Kudos
95 Replies
Drew
by
Frequent Contributor
.
Compatible 3.0 Version Released.

(There is no new functionality in the version, it just works with the 3.0 Viewer Template)

Widget URL
http://www.arcgis.com/home/item.html?id=edd4a2b7c722493a8b08f53eaa131e1e

Thanks for your interest!

Drew
0 Kudos
HakimAbdi
Occasional Contributor
[ATTACH=CONFIG]17018[/ATTACH]
UPDATE: Viewer 2.5 version now available for download.


Excellent widget Drew. I'm using the 2.5 version and somehow I'm getting the same value for X and Y in the "Live Coordinates". Is there a way to remove that feature since live coordinates are provided within Flex Viewer? Otherwise the widget works wonderfully and it's very handy.

Cheers,

Hakim
0 Kudos
RhettZufelt
MVP Notable Contributor
There is a typo in the CoordinateMenuWidget_GUI.mxml. if you have uncompiled you can change this:

  <s:Label fontWeight="bold" text="Live Coordinates"/>
  <s:HGroup width="100%" color="#C4C4C4" fontSize="10">
   <mx:Label fontWeight="bold" text="X:"/><mx:Label width="100%"
            text="{this.mouseMoveMapPoint.x.toFixed(helper.precision)}"/>
   <mx:Label fontWeight="bold" text="Y:"/>
   <mx:Label width="100%" text="{this.mouseMoveMapPoint.y.toFixed(helper.precision)}"/>
  </s:HGroup>


If you comment out that entire section, it removes it from the GUI.

R_
0 Kudos
HakimAbdi
Occasional Contributor
There is a typo in the CoordinateMenuWidget_GUI.mxml. if you have uncompiled you can change this: 

  <s:Label fontWeight="bold" text="Live Coordinates"/>
  <s:HGroup width="100%" color="#C4C4C4" fontSize="10">
   <mx:Label fontWeight="bold" text="X:"/><mx:Label width="100%"
            text="{this.mouseMoveMapPoint.x.toFixed(helper.precision)}"/>
   <mx:Label fontWeight="bold" text="Y:"/>
   <mx:Label width="100%" text="{this.mouseMoveMapPoint.y.toFixed(helper.precision)}"/>
  </s:HGroup>


If you comment out that entire section, it removes it from the GUI. 

R_


Great!! Thanks R_
0 Kudos
Drew
by
Frequent Contributor
That was a big mistake on my part guys. Thanks for posting the error and for providing a fix!

I have updated the 2.5 - 3.0 source and compiled versions on the widgets page.

Thanks again.

http://www.arcgis.com/home/item.html?id=edd4a2b7c722493a8b08f53eaa131e1e

Drew
0 Kudos
JarmoPeltomäki
Emerging Contributor
I cannot make the new definition of ETRS 1989 GK21FIN work. It came with ArcGIS version 10.1. wkid=3875.
The older definition wkid=3128 works.
What's wrong? Should I use my own GeometryService?

Jarmo

ArcGIS Server 10.1, Flew Viewer 3.0.
0 Kudos
Drew
by
Frequent Contributor
I cannot make the new definition of ETRS 1989 GK21FIN work. It came with ArcGIS version 10.1. wkid=3875.
The older definition wkid=3128 works.
What's wrong? Should I use my own GeometryService?

Jarmo

ArcGIS Server 10.1, Flew Viewer 3.0.


If it's new in 10.1 then you will want to ensure that you are using a 10.1 Geometry service.
The default service I have specified in the config is probably 10.0. Either change it to use your geometry service or you can use ESRI's 10.1

http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer

Drew
0 Kudos
JarmoPeltomäki
Emerging Contributor
If it's new in 10.1 then you will want to ensure that you are using a 10.1 Geometry service.
The default service I have specified in the config is probably 10.0. Either change it to use your geometry service or you can use ESRI's 10.1

http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer

Drew


Either of these worked!
Is there anything special about creating your own geometry service.
I just created it with Manager and copied the path to config.xml strating with "http://localhost:6080/arcgis..."


Jarmo
0 Kudos
JeffersonFerreira_Ferreira
Deactivated User
Dear Colleagues;

Im using the widget customized with success. The litte customizations I've made was translating to Brazilian Portuguese and change some icons, comment some parts (specific tools likely confuse for a very lay users), etc. But I have an issue: the "Live Coordinates" section in the UI show only X values in both x and Y field. And more, the coordinates are in WebMercator metric system and i want to show it in WGS84, DD.DDDD format. Is it Possible? What could be wrong with the displayed coordinates (X= {x values} / Y= {x values}) ????

Thanks in advance.
0 Kudos
HakimAbdi
Occasional Contributor

But I have an issue: the "Live Coordinates" section in the UI show only X values in both x and Y field.


This has been discussed in the thread, see above. Draw corrected the source code, either download the zip file again or follow rzufelt's correction to fixed the typo in the source.
0 Kudos