<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Show scale with coordinates in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373311#M10651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Jamal,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; You can not use this code change if you are only using the ArcGIS Viewer Application Builder. When you use the App Builder or the compiled Flex Viewer you are ONLY configuring the application though XML changes. When people in these forums talk about code changes they are speaking of using the AGS Viewer for Flex source code and some Flex IDE, like Flash Builder.&lt;BR /&gt;&lt;BR /&gt;Robert&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for the answer Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 19:28:44 GMT</pubDate>
    <dc:creator>JamalNUMAN</dc:creator>
    <dc:date>2013-01-02T19:28:44Z</dc:date>
    <item>
      <title>Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373290#M10630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The coordinate widget shows lat/long mouseover coordinates in the map, but can anyone advise on how to display map scale alongside the coordinates? Take a look here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://top100projects.ca/map/"&gt;http://top100projects.ca/map/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or see the screen shot, attached. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Simple adjustment to the coordinate widget? Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 23:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373290#M10630</guid>
      <dc:creator>DanielOchoa</dc:creator>
      <dc:date>2011-02-23T23:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373291#M10631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Try this in the CoordinateWidget.mxml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function map_mouseMoveHandler(event:MouseEvent):void
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const mapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coords.text = m_func(mapPoint)&lt;STRONG&gt; + " Scale 1:" + map.scale.toString()&lt;/STRONG&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373291#M10631</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T16:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373292#M10632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That worked&amp;nbsp; - thanks! But its showing the scale in meters (e.g. 1:14567789.232567) instead of something like 1: 12,456,578 . Can you guide me as to what part of the code needs to change to have the scale show as standard instead of metric? Once again, you rock!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~ D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 16:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373292#M10632</guid>
      <dc:creator>DanielOchoa</dc:creator>
      <dc:date>2011-02-24T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373293#M10633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The scale will be whatever the map's spatial reference is set to so if you are using ESRI basemaps than the map's SR is like web mercator which is meters. I guess you could do some standard math and convert meters to feet if that is what you are asking...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 16:24:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373293#M10633</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-02-24T16:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373294#M10634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; The scale will be whatever the map's spatial reference is set to&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yea, I figured that might be the case, but I was wondering if there was a way in the code to force the output to show something different.&amp;nbsp; I'm still new at this, so I didnt know if you could adjust something under the map_loadHandler to reflect a different format. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the "standard math" option sounds interesting...is there a way to code some conversion math into the coordinate mxml and compile so I can get what I'm looking for?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the education....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 16:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373294#M10634</guid>
      <dc:creator>DanielOchoa</dc:creator>
      <dc:date>2011-02-24T16:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373295#M10635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sure something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function map_mouseMoveHandler(event:MouseEvent):void
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const mapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coords.text = m_func(mapPoint) + " Scale 1:" + String(map.scale * 3.2808398950131235);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I can never remember if the right calculation is multiple or divide though.:o&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373295#M10635</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T17:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373296#M10636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is good.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I remove the dozen or so decimal places in the scale?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Feb 2011 04:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373296#M10636</guid>
      <dc:creator>SteveWhitehead__GISP</dc:creator>
      <dc:date>2011-02-27T04:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373297#M10637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Just add a numberformatter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; private function map_mouseMoveHandler(event:MouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var nf:NumberFormatter = new NumberFormatter();
&amp;nbsp;&amp;nbsp;&amp;nbsp; nf.precision = 2;
&amp;nbsp;&amp;nbsp;&amp;nbsp; const mapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);
&amp;nbsp;&amp;nbsp;&amp;nbsp; coords.text = m_func(mapPoint) + " Scale 1:" + nf.format(map.scale * 3.2808398950131235);
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:15:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373297#M10637</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T17:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373298#M10638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Steve,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Just add a numberformatter. &lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; private function map_mouseMoveHandler(event:MouseEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var nf:NumberFormatter = new NumberFormatter();
&amp;nbsp;&amp;nbsp;&amp;nbsp; nf.precision = 2;
&amp;nbsp;&amp;nbsp;&amp;nbsp; const mapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);
&amp;nbsp;&amp;nbsp;&amp;nbsp; coords.text = m_func(mapPoint) + " Scale 1:" + nf.format(map.scale * 3.2808398950131235);
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:15:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373298#M10638</guid>
      <dc:creator>SteveWhitehead__GISP</dc:creator>
      <dc:date>2021-12-11T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373299#M10639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;include this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;map.addEventListener(MouseEvent.MOUSE_WHEEL, map_mouseMoveHandler);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;directly under this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;map.addEventListener(MouseEvent.MOUSE_MOVE, map_mouseMoveHandler);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and the scale will refresh when you zoom in and out.&amp;nbsp;&amp;nbsp; Otherwise it is possible to zoom in and out and not have the scale refresh until you actually move the mouse pointer....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 13:32:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373299#M10639</guid>
      <dc:creator>philippschnetzer</dc:creator>
      <dc:date>2011-03-08T13:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373300#M10640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how I can fix the coodinates values to two decimal?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 11:12:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373300#M10640</guid>
      <dc:creator>Stefanobruscoli</dc:creator>
      <dc:date>2011-03-14T11:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373301#M10641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Stefano,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Look three posts above yours.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 12:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373301#M10641</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-14T12:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373302#M10642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To specifically address the coordinate display issue (not scale). Replace your substitute function with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 
&lt;SPAN style="color: #0033ff; font-size: 2;"&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 2;"&gt;private&lt;/STRONG&gt;


&lt;/SPAN&gt;&lt;STRONG style=": ; color: #339966; font-size: 2;"&gt;function&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt; substitute(mapPoint:MapPoint):String&lt;/SPAN&gt;


 
[LEFT]&lt;SPAN style="font-size:2;"&gt;{&lt;/SPAN&gt;

&lt;STRONG style=": ; color: #6699cc; font-size: 2;"&gt;var&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt; nf2:NumberFormatter = &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 2;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt; NumberFormatter(); &lt;/SPAN&gt;

&lt;SPAN style="font-size:2;"&gt;nf2.precision = 2; &lt;/SPAN&gt;
&lt;STRONG style=": ; color: #0033ff; font-size: 2;"&gt;return&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt; StringUtil.substitute(m_template, &lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;nf2.format(mapPoint.x), &lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;nf2.format(mapPoint.y)); &lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;}&lt;/SPAN&gt;

[/LEFT]

 
 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:15:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373302#M10642</guid>
      <dc:creator>EricAnderson</dc:creator>
      <dc:date>2021-12-11T17:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373303#M10643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there anyway to display MGRS (Military Grid Reference System) at the bottom instead of DMS/mercator?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 13:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373303#M10643</guid>
      <dc:creator>KennethLyons</dc:creator>
      <dc:date>2012-01-18T13:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373304#M10644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there anyway to display MGRS (Military Grid Reference System) at the bottom instead of DMS/mercator?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Sure, the scale will be whatever the map's spatial reference is set to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 13:40:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373304#M10644</guid>
      <dc:creator>MLowry</dc:creator>
      <dc:date>2012-01-19T13:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373305#M10645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to force the scale on the Coordinates widget to the same scale on the LODs on the Navigation widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373305#M10645</guid>
      <dc:creator>ShaneCarey</dc:creator>
      <dc:date>2012-07-25T14:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373306#M10646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;include this code:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.addEventListener(MouseEvent.MOUSE_WHEEL, map_mouseMoveHandler);&lt;/PRE&gt;&lt;BR /&gt;directly under this line:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.addEventListener(MouseEvent.MOUSE_MOVE, map_mouseMoveHandler);&lt;/PRE&gt;&lt;BR /&gt;and the scale will refresh when you zoom in and out.&amp;nbsp;&amp;nbsp; Otherwise it is possible to zoom in and out and not have the scale refresh until you actually move the mouse pointer....&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Works great, however also added this line under that &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.addEventListener(MouseEvent.DOUBLE_CLICK, map_mouseMoveHandler);
&lt;/PRE&gt;&lt;SPAN&gt; so that it gets updated on double-click to zoom in also.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373306#M10646</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-11T17:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373307#M10647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible to force the scale on the Coordinates widget to the same scale on the LODs on the Navigation widget?&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My LODs are set by loading in a tiled service as a basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the Scale displays exactly the LOD for the cached zoom level I am currently viewing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 23:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373307#M10647</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2012-07-30T23:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373308#M10648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Daniel,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Sure something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function map_mouseMoveHandler(event:MouseEvent):void
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const mapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coords.text = m_func(mapPoint) + " Scale 1:" + String(map.scale * 3.2808398950131235);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;I can never remember if the right calculation is multiple or divide though.:o&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While this is a great example of incorporating code to modify output, you don't want to do this.&amp;nbsp; The scale shown is "Representative Fraction" scale&amp;nbsp; which is not based upon a specific unit of measure.&amp;nbsp; By this I mean an RF scale of 1:100 is the same regardless of how you care to measure it; 1 in represents 100 inches or 1 meter represents 100 meters.&amp;nbsp; To convert the result displayed means you would need to add additional text so it would read "1 meter represents xx yards".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373308#M10648</guid>
      <dc:creator>ronaldmcfarlane</dc:creator>
      <dc:date>2021-12-11T17:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show scale with coordinates</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373309#M10649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Daniel,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; Try this in the CoordinateWidget.mxml&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function map_mouseMoveHandler(event:MouseEvent):void
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const mapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coords.text = m_func(mapPoint)&lt;STRONG style="color: &amp;quot;Red&amp;quot;;"&gt; + " Scale 1:" + map.scale.toString()&lt;/STRONG&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please indicate where should I stick this code? I have no idea!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20348[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/show-scale-with-coordinates/m-p/373309#M10649</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2021-12-11T17:15:37Z</dc:date>
    </item>
  </channel>
</rss>

