Hi Andrew Firstly - awesome widget, has gotten great use around our team. I have now got the job of building a viewer for a company that have their own projected coordinate system (no WKID) and I was wondering if I can somehow use it with your widget? I have had a look at the ReadMe.txt however not much luck. Thanks heaps 🙂 Dominique
Hi Andrew,Great little widget, use it all the time.Was wondering if you have plans to port this to the pre-release3 API any time?Thanks,R_
Andrew,Looks like others have helped. It has been ported over here:http://forums.arcgis.com/threads/61128-CoordinateMenu-Widget?p=211084#post211084R_
Is there a way to change the units of a coordinate system? People in my organization occasionally try to utilize UTM feet. Yes I hate it too and typically go on one of my rants when they do but it doesn't stop them. Is there a way to support UTM feet? <coordinateSystem name="UTM Zone13 Meters NAD 1983" wkid="26913" decimals="2"/>I think I am hoping there is a way to modify the coordinate system units to US Survey feet. Is there an unpublished protocol I don't know about?Chris
UPDATE: Viewer 2.5 version now available for download.
<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>
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_
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?JarmoArcGIS 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.1http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServerDrew
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.
<coordinateSystem name="GCS WGS 1984 (Decimal Degrees)" wkid="4326" decimals="9" />
Brilliant! Drew thank you so much. Two quick questions (hopefully): 1. Is there a way to have the "Go to Coordinates" window preload when the application starts instead of 'Live Coordinates'? Can I just copy the widget and comment out everything but the 'Go to Coordinates' functionality? Many thanks, again!
<viewer:WidgetTemplate open="{this.graphicsLayer.visible = true; }" closed="{this.graphicsLayer.visible = false; }" id="wTemplate" width="400" height="235" visible="false">
private function init():void { //Set Helper this.helper = new CoordinateMenuWidgetHelper(configXML,map); //SET Mouse Event Handlers this.map.addEventListener(MouseEvent.MOUSE_MOVE, onMapMouseMove); this.map.addEventListener(MouseEvent.CLICK, onMapMouseClick); //Add GraphicsLayer to map this.graphicsLayer.symbol = new SimpleMarkerSymbol("circle",10,0xFF0000);; this.map.addLayer(this.graphicsLayer); // add additional contex menu for projected coords. if (this.helper.coordinateSystems.length == 0) { btnProject.visible = false; btnProject.includeInLayout = false; } goToCoordinate.show(configXML,map); }
Hi Rhett - I've been plugging along to get the 'Go to XY' widget working as a standalone. I'm slowly learning as I go, but running into a small issue. Once I launch the "widget" and then close it, the widget 1. doesn't lose focus in the widget panel (ie: the white underline is still below the icon), and 2. it won't re-open. See the on close attachment. Do you know of a quick function/command/something-er-rather to add to the s:TitleWindow to get it to reset? It only resets if I re-launch the applicaiton. Many thanks, Meg
protected function widgetConfigLoadedHandler(event:Event):void { if (configXML) { //Set Helper this.helper = new CoordinateMenuWidgetHelper(configXML,map); // Map mouse move event handler - captures XY this.map.addEventListener(MouseEvent.MOUSE_MOVE, onMapMouseMove); //Hide ESRI About Menu Items hideESRIMenuItems(); // Load context Menu items. createContextMenu(); } else { //Show error if XML fails. Alert.show("There was an error loading the widget configuration XML file ( CopyXY Widget )"); return; } \\My Add this.goToCoordinates.show(configXML,this.map); }
It's weird... If someone can give any idea...This widget (GoTo) only work if the map is in webmercator? Any ideas? Thanks!
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.