<?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: Scale Text instead of Scale Bar? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367988#M8636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ionara,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to use a number formatter, add a declaration&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;fx:Declarations&amp;gt;&amp;nbsp; &amp;lt;mx:NumberFormatter id="numFormatter" precision="0" useThousandsSeparator="true"/&amp;gt; &amp;lt;/fx:Declarations&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can use the formatter on your number&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mx:Label text="1:{numFormatter.format(myMap.scale.toFixed(0))}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 18:22:26 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2012-10-31T18:22:26Z</dc:date>
    <item>
      <title>Scale Text instead of Scale Bar?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367986#M8634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to have in a web app a dynamic scale text (like 1:24,000) instead of a scale bar? If so, where can I find an example or code snippet? Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367986#M8634</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2012-10-31T16:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scale Text instead of Scale Bar?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367987#M8635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is the answer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="Current map scale:" fontWeight="bold"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="1:{myMap.scale.toFixed(0)}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure how I can have the thousands separator on the scale so I will post another thread!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 17:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367987#M8635</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2012-10-31T17:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scale Text instead of Scale Bar?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367988#M8636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ionara,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to use a number formatter, add a declaration&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;fx:Declarations&amp;gt;&amp;nbsp; &amp;lt;mx:NumberFormatter id="numFormatter" precision="0" useThousandsSeparator="true"/&amp;gt; &amp;lt;/fx:Declarations&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can use the formatter on your number&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mx:Label text="1:{numFormatter.format(myMap.scale.toFixed(0))}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 18:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367988#M8636</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-10-31T18:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scale Text instead of Scale Bar?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367989#M8637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Anthony!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a formatter but instead of creating the label directly I created a function for the extentChange event of the map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; private function updateScale():void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scaleText.text = myNumberFormatter.format(myMap.scale).toString();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The scaleText is a label I created. I believe your version is better because it is much simpler!!! Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 19:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367989#M8637</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2012-11-01T19:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scale Text instead of Scale Bar?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367990#M8638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have it with my coordinates as per this thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/24407-Show-scale-with-coordinates"&gt;http://forums.arcgis.com/threads/24407-Show-scale-with-coordinates&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 22:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367990#M8638</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2012-11-01T22:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scale Text instead of Scale Bar?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367991#M8639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great link for adjusting the scale format Rhett ! Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 12:11:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/scale-text-instead-of-scale-bar/m-p/367991#M8639</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2012-11-02T12:11:25Z</dc:date>
    </item>
  </channel>
</rss>

