Solved! Go to Solution.
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:
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;
}
mapX = geoPnt.x.toString(); //geoMapPnt2dmsString(geoPnt,"x");
mapY = geoPnt.y.toString(); //geoMapPnt2dmsString(geoPnt,"y");
mapX = geoPnt.x.toFixed(5);