<?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: Zoom to Scale in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-to-scale/m-p/725464#M18596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There was a similar discussion about this same topic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=213&amp;amp;f=2455&amp;amp;t=285205"&gt;http://forums.esri.com/Thread.asp?c=213&amp;amp;f=2455&amp;amp;t=285205&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also the 39.37 represents the number of Inches in 1 meter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DPI * 39.37 would result in the number of dots per meter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2011 14:39:39 GMT</pubDate>
    <dc:creator>RobertBurke</dc:creator>
    <dc:date>2011-11-07T14:39:39Z</dc:date>
    <item>
      <title>Zoom to Scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-to-scale/m-p/725463#M18595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this question has been asked a couple of times but I haven't been able to find the Map Unit In Feet instead of Degrees or Meters.&amp;nbsp; This is the code that I am using but need to fill in the Map Unit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;double dpi = 96; //Set to resolution of your screen&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;string Scale = MapScale.Text;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;double scale = double.Parse(Scale);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;double mapunitInMeters = 111319.5; //size of one degree at Equator. Change if you are using a projection with a different unit than degrees&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;double newRes = scale / (dpi * 39.37 * mapunitInMeters);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map.ZoomToResolution(newRes);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know what the Map Unit In Feet is?&amp;nbsp; Also does the 39.37 number need to change for NAD 83 Feet projection?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 17:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-to-scale/m-p/725463#M18595</guid>
      <dc:creator>DawnBlanchard</dc:creator>
      <dc:date>2011-11-04T17:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to Scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-to-scale/m-p/725464#M18596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There was a similar discussion about this same topic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=213&amp;amp;f=2455&amp;amp;t=285205"&gt;http://forums.esri.com/Thread.asp?c=213&amp;amp;f=2455&amp;amp;t=285205&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also the 39.37 represents the number of Inches in 1 meter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DPI * 39.37 would result in the number of dots per meter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 14:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-to-scale/m-p/725464#M18596</guid>
      <dc:creator>RobertBurke</dc:creator>
      <dc:date>2011-11-07T14:39:39Z</dc:date>
    </item>
  </channel>
</rss>

