<?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 How do i get the Scale value of the map? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-get-the-scale-value-of-the-map/m-p/644706#M16574</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;I'm making a "Zoom by scale" function for the SL map application here at work, and i'm having a little trouble getting the map scale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to get it by the map directly, and by the ESRI Scalebar, but i didn't find a way to get the value so i could make the math necessary to the way i found to build it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's how I'm trying to make it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private void BtnGo_Click(object sender, RoutedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; double zoomFactor = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; //mapScale should be the scale of the map and 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //txtScale is a textbox where the user typed the desired scale
&amp;nbsp;&amp;nbsp;&amp;nbsp; zoomFactor = double.Parse(txtScale.Text) / mapScale;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mapa.Zoom(zoomFactor);
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Aug 2010 10:55:24 GMT</pubDate>
    <dc:creator>jonataspovoas</dc:creator>
    <dc:date>2010-08-31T10:55:24Z</dc:date>
    <item>
      <title>How do i get the Scale value of the map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-get-the-scale-value-of-the-map/m-p/644706#M16574</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;I'm making a "Zoom by scale" function for the SL map application here at work, and i'm having a little trouble getting the map scale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to get it by the map directly, and by the ESRI Scalebar, but i didn't find a way to get the value so i could make the math necessary to the way i found to build it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's how I'm trying to make it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private void BtnGo_Click(object sender, RoutedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; double zoomFactor = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; //mapScale should be the scale of the map and 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //txtScale is a textbox where the user typed the desired scale
&amp;nbsp;&amp;nbsp;&amp;nbsp; zoomFactor = double.Parse(txtScale.Text) / mapScale;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mapa.Zoom(zoomFactor);
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 10:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-get-the-scale-value-of-the-map/m-p/644706#M16574</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2010-08-31T10:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the Scale value of the map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-get-the-scale-value-of-the-map/m-p/644707#M16575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please see the API Reference for the map, where the relation between scale and resolution is explained:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 18:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-do-i-get-the-scale-value-of-the-map/m-p/644707#M16575</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-08-31T18:34:12Z</dc:date>
    </item>
  </channel>
</rss>

