<?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: MapView.scale - Accessor set and get - async? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-scale-accessor-set-and-get-async/m-p/241071#M22356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should watch for &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#updating"&gt;view.updating&lt;/A&gt; property to get the updated scale value. Please look at the Watch for Property changes section in &lt;A href="https://developers.arcgis.com/javascript/latest/guide/programming-patterns/"&gt;this document&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2019 19:07:35 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2019-11-11T19:07:35Z</dc:date>
    <item>
      <title>MapView.scale - Accessor set and get - async?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-scale-accessor-set-and-get-async/m-p/241070#M22355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;recently i came across a strange behaviour of the Esri-JavaScript Api 4.13.&lt;BR /&gt;The MapView.scale was set in one method, and then the getter was called in another method. But the value returned was still the old one. I stepped inside the sources to the point where the set and get methods are implemented (Accessor, then MapView) and realised that there is a flag "internallyReady", which, in case of the getter, is used to decide which value to return, the old one or the new one.&lt;/P&gt;&lt;P&gt;I locked up the Api-Docs, but there was not any note about the scale property being asynchronous. To me it seems kind of odd, that a getter/setter is showing this kind behaviour. When is it save to call the getter to receive the value that was actually set?&lt;/P&gt;&lt;P&gt;Am i missing something?&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 17:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-scale-accessor-set-and-get-async/m-p/241070#M22355</guid>
      <dc:creator>AndreasKunz</dc:creator>
      <dc:date>2019-11-08T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.scale - Accessor set and get - async?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-scale-accessor-set-and-get-async/m-p/241071#M22356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should watch for &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#updating"&gt;view.updating&lt;/A&gt; property to get the updated scale value. Please look at the Watch for Property changes section in &lt;A href="https://developers.arcgis.com/javascript/latest/guide/programming-patterns/"&gt;this document&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 19:07:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-scale-accessor-set-and-get-async/m-p/241071#M22356</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2019-11-11T19:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.scale - Accessor set and get - async?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-scale-accessor-set-and-get-async/m-p/241072#M22357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Undral,&lt;/P&gt;&lt;P&gt;sorry for answering so late, thanks for the tip! We managed to get around this, but i will keep the updating-property in mind.&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;Schotty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 16:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-scale-accessor-set-and-get-async/m-p/241072#M22357</guid>
      <dc:creator>AndreasKunz</dc:creator>
      <dc:date>2020-02-03T16:13:20Z</dc:date>
    </item>
  </channel>
</rss>

