<?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 check view is created or not before executing any other operation in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-check-view-is-created-or-not-before/m-p/1022898#M71608</link>
    <description>&lt;P&gt;i have created two function as follows:&lt;/P&gt;&lt;P&gt;1. to create basemap and view&lt;/P&gt;&lt;P&gt;2. to add sketch widget or some other widgets to it&lt;/P&gt;&lt;P&gt;i am calling both the function from a separate js file in order as follows:&lt;/P&gt;&lt;P&gt;loadbasemap();&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;addwidget()&lt;/P&gt;&lt;P&gt;the problem is before completely executing loadbasemap().it try executing addwidget() and throwing error that "view not created".&lt;/P&gt;&lt;P&gt;what could be the reson or how to handle it.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2021 06:53:30 GMT</pubDate>
    <dc:creator>RitikaManderwal</dc:creator>
    <dc:date>2021-02-03T06:53:30Z</dc:date>
    <item>
      <title>how to check view is created or not before executing any other operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-check-view-is-created-or-not-before/m-p/1022898#M71608</link>
      <description>&lt;P&gt;i have created two function as follows:&lt;/P&gt;&lt;P&gt;1. to create basemap and view&lt;/P&gt;&lt;P&gt;2. to add sketch widget or some other widgets to it&lt;/P&gt;&lt;P&gt;i am calling both the function from a separate js file in order as follows:&lt;/P&gt;&lt;P&gt;loadbasemap();&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;addwidget()&lt;/P&gt;&lt;P&gt;the problem is before completely executing loadbasemap().it try executing addwidget() and throwing error that "view not created".&lt;/P&gt;&lt;P&gt;what could be the reson or how to handle it.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 06:53:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-check-view-is-created-or-not-before/m-p/1022898#M71608</guid>
      <dc:creator>RitikaManderwal</dc:creator>
      <dc:date>2021-02-03T06:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to check view is created or not before executing any other operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-check-view-is-created-or-not-before/m-p/1022949#M71611</link>
      <description>&lt;P&gt;I've found the video that &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt; made to be helpful in determining when things are ready to be used: &lt;A href="https://www.youtube.com/watch?v=fUz1IGh0sb8&amp;amp;feature=emb_title" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=fUz1IGh0sb8&amp;amp;feature=emb_title&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is a little out of date, with "when" replacing "then". He has a newer version of it &lt;A href="https://odoe.net/blog/when-are-layers-done" target="_self"&gt;here&lt;/A&gt;, geared towards showing when a layer is ready.&lt;/P&gt;&lt;P&gt;Another thing to look at is calling the addwidget function from within the loadbasemap function when the view is ready.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 13:22:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-check-view-is-created-or-not-before/m-p/1022949#M71611</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-02-03T13:22:00Z</dc:date>
    </item>
  </channel>
</rss>

