<?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/450722#M11661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure what is the question, but &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;double newRes = scale / (dpi * 12);&lt;/SPAN&gt;&lt;SPAN&gt; looks good to me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2011 11:02:53 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2011-11-29T11:02:53Z</dc:date>
    <item>
      <title>Zoom to scale</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-to-scale/m-p/450721#M11660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure how to change the math for the example in &lt;/SPAN&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;SPAN&gt; for NM State Plane (2903) and Units = ersiFeet.&amp;nbsp;&amp;nbsp; Specifically what do I use instead of 39.37 (inches per meter)?&amp;nbsp; Should this be 12 (inches per foot)?&amp;nbsp;&amp;nbsp;&amp;nbsp; Also what should use instead of mapunitInMeters (see snippit below)?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private void zoomToScaleCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (MyMap == null) return;&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; double scale = double.Parse((e.AddedItems[0] as ComboBoxItem).Tag.ToString());&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; MyMap.ZoomToResolution(newRes);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would this logic be (12 inch = 1 foot and since the mapunit is in feet this value would be 1)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;double newRes = scale / (dpi * 12 * 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or more simply&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;double newRes = scale / (dpi * 12);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 18:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-to-scale/m-p/450721#M11660</guid>
      <dc:creator>GregoryDillon</dc:creator>
      <dc:date>2011-11-28T18:17:36Z</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/450722#M11661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure what is the question, but &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;double newRes = scale / (dpi * 12);&lt;/SPAN&gt;&lt;SPAN&gt; looks good to me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 11:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-to-scale/m-p/450722#M11661</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-11-29T11:02:53Z</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/450723#M11662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just wanted to make sure I had the formula right for my projection (NM State Plane) and Feet based units.&amp;nbsp;&amp;nbsp; I guess the project really doesn't matter as long as the units are in feet.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You told me what I need to know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 16:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-to-scale/m-p/450723#M11662</guid>
      <dc:creator>GregoryDillon</dc:creator>
      <dc:date>2011-11-29T16:02:44Z</dc:date>
    </item>
  </channel>
</rss>

