mapX = geoPnt.x.toFixed(5);
mapX = geoPnt.x.toString(); //geoMapPnt2dmsString(geoPnt,"x"); mapY = geoPnt.y.toString(); //geoMapPnt2dmsString(geoPnt,"y");
private function mouseMoveHandler(event:MouseEvent):void { const mapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY); const geoPnt:MapPoint = WebMercatorUtil.webMercatorToGeographic(mapPoint) as MapPoint; mapX = geoPnt.x; //geoMapPnt2dmsString(geoPnt,"x"); mapY = geoPnt.y; //geoMapPnt2dmsString(geoPnt,"y"); mapXY = "Lat: " + mapY + " Lon: " + mapX; }
Daniel, Hopefully I don't forget anything... Here is the additions to the MapManager.mxml, WidgetManager.mxml and HeaderControllerWidget.mxml. Make sure you comment all your changes so that when Flex Viewer 3.0 comes out in a couple of months you can easily find the code additions.Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).Follow the steps as shown in the below graphic:
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.