<?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 to get and set map scale? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-and-set-map-scale/m-p/864604#M4888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the following page &lt;A class="link-titled" href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Authoring#creating-and-displaying-maps" title="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Authoring#creating-and-displaying-maps"&gt;ProConcepts Map Authoring · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt; is stated that the Map object has a map scale property, but I cannot find this property. MapView.Active doesn't have a map scale property neither.&lt;/P&gt;&lt;P&gt;So how can I get and set the map scale?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2020 10:33:10 GMT</pubDate>
    <dc:creator>BarbaraSchneider2</dc:creator>
    <dc:date>2020-07-22T10:33:10Z</dc:date>
    <item>
      <title>How to get and set map scale?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-and-set-map-scale/m-p/864604#M4888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the following page &lt;A class="link-titled" href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Authoring#creating-and-displaying-maps" title="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Authoring#creating-and-displaying-maps"&gt;ProConcepts Map Authoring · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt; is stated that the Map object has a map scale property, but I cannot find this property. MapView.Active doesn't have a map scale property neither.&lt;/P&gt;&lt;P&gt;So how can I get and set the map scale?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 10:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-and-set-map-scale/m-p/864604#M4888</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2020-07-22T10:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get and set map scale?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-and-set-map-scale/m-p/864605#M4889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Camera camera &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; newMapframe&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Camera&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
camera&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;118.465&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
camera&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;33.988&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
camera&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Scale &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;30000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
newMapframe&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;SetCamera&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;camera&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the camera of the map frame.&amp;nbsp; xy to center it, then scale it how you want.&amp;nbsp; &amp;nbsp;I should note this is for layouts.&amp;nbsp; I don't know off the top of my head how it is done in the map view.&amp;nbsp; Let me know if that is what you need and I can try and figure it out.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-and-set-map-scale/m-p/864605#M4889</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2021-12-12T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get and set map scale?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-and-set-map-scale/m-p/864606#M4890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matthew,&lt;/P&gt;&lt;P&gt;thank you for your reply! For the map view, setting the map scale works as follows:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;MapView mapView &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; MapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Active&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
Camera camera &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Camera&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
camera&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Scale &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
mapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ZoomToAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;camera&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; TimeSpan&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Zero&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Barbara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-and-set-map-scale/m-p/864606#M4890</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2021-12-12T10:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get and set map scale?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-and-set-map-scale/m-p/1082370#M6934</link>
      <description>&lt;P&gt;This is exactly what I am looking for, kudos to &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/200364"&gt;@BarbaraSchneider2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 21:29:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-and-set-map-scale/m-p/1082370#M6934</guid>
      <dc:creator>Amadeus111</dc:creator>
      <dc:date>2021-07-23T21:29:38Z</dc:date>
    </item>
  </channel>
</rss>

