<?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: Adding Javascript API widget to Esri's Angular CLI boilerplate code in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-javascript-api-widget-to-esri-s-angular-cli/m-p/792044#M70761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this response will help others....&lt;/P&gt;&lt;P&gt;Add the widget to the mapview in the&amp;nbsp;mapView.when(() =&amp;gt; {&amp;nbsp; callback.&amp;nbsp; This will ensure that the mapView is fully initialized AND in scope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2020 13:32:50 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-01-09T13:32:50Z</dc:date>
    <item>
      <title>Adding Javascript API widget to Esri's Angular CLI boilerplate code</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-javascript-api-widget-to-esri-s-angular-cli/m-p/792043#M70760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I'm using the Esri Angular CLI template from Github here:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/angular-cli-esri-map" title="https://github.com/Esri/angular-cli-esri-map"&gt;GitHub - Esri/angular-cli-esri-map: Example Angular component for building mapping applications with the ArcGIS API for …&lt;/A&gt;&amp;nbsp;.&amp;nbsp;I've been trying to understand how I can add a widget t&lt;/SPAN&gt;o the app, in the&lt;SPAN&gt;&amp;nbsp;esri-map.component.ts file.&lt;/SPAN&gt; I've added the appropriate code for the BasemapToggle widget within the "async ... try {..." and after the "const mapViewProperties:..." parts like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV style="color: #f8f8f2; background-color: #272822;"&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #88846f;"&gt;/********************&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #88846f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Add&amp;nbsp;Widgets&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #88846f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;********************/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #66d9ef;"&gt;const&lt;/SPAN&gt;&amp;nbsp;basemapToggle&amp;nbsp;&lt;SPAN style="color: #f92672;"&gt;=&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #f92672;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #a6e22e;"&gt;BasemapToggle&lt;/SPAN&gt;({&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;view:&amp;nbsp;mapViewProperties,&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #88846f;"&gt;//&amp;nbsp;The&amp;nbsp;view&amp;nbsp;that&amp;nbsp;provides&amp;nbsp;access&amp;nbsp;to&amp;nbsp;the&amp;nbsp;map's&amp;nbsp;"satelite"&amp;nbsp;basemap&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;nextBasemap:&amp;nbsp;&lt;SPAN style="color: #e6db74;"&gt;"topo"&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #88846f;"&gt;//&amp;nbsp;Allows&amp;nbsp;for&amp;nbsp;toggling&amp;nbsp;to&amp;nbsp;the&amp;nbsp;"hybrid"&amp;nbsp;basemap&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #88846f;"&gt;//add&amp;nbsp;the&amp;nbsp;widget&amp;nbsp;to&amp;nbsp;the&amp;nbsp;top&amp;nbsp;right&amp;nbsp;of&amp;nbsp;the&amp;nbsp;view&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mapViewProperties.ui.&lt;SPAN style="color: #a6e22e;"&gt;add&lt;/SPAN&gt;(basemapToggle,&amp;nbsp;&lt;SPAN style="color: #e6db74;"&gt;"top-right"&lt;/SPAN&gt;);&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;P&gt;But after that,&amp;nbsp;I get a window in Visual Studio Code saying "any:&amp;nbsp;Property 'add' does not exist on type 'DefaultUIProperties'", even though it looks like add() is mentioned in the documentation:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-DefaultUI.html"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-DefaultUI.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is attached. Any guidance whatsoever would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A href="https://community.esri.com/migrated-users/2202"&gt;Andy Gup&lt;/A&gt;&lt;A href="https://community.esri.com/migrated-users/230981"&gt;Sean Olson&lt;/A&gt;&lt;A href="https://community.esri.com/migrated-users/2337"&gt;Jacob Wasilkowski&lt;/A&gt;&lt;A href="https://community.esri.com/migrated-users/250551"&gt;Allison Davis&lt;/A&gt;‌&lt;A href="https://community.esri.com/migrated-users/106992"&gt;Tom Wayson&lt;/A&gt;‌&lt;A href="https://community.esri.com/migrated-users/2906"&gt;Bjorn Svensson&lt;/A&gt;‌&lt;A href="https://community.esri.com/migrated-users/51882"&gt;Undral Batsukh&lt;/A&gt;‌&lt;A href="https://community.esri.com/migrated-users/2584"&gt;Kevin Bedel&lt;/A&gt;‌&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌&lt;A href="https://community.esri.com/migrated-users/154383"&gt;Hussein Nasser&lt;/A&gt;‌&lt;A href="https://community.esri.com/migrated-users/43956"&gt;Rene Rubalcava&lt;/A&gt;‌&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2019 06:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-javascript-api-widget-to-esri-s-angular-cli/m-p/792043#M70760</guid>
      <dc:creator>JacobHelfman1</dc:creator>
      <dc:date>2019-11-24T06:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Javascript API widget to Esri's Angular CLI boilerplate code</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-javascript-api-widget-to-esri-s-angular-cli/m-p/792044#M70761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this response will help others....&lt;/P&gt;&lt;P&gt;Add the widget to the mapview in the&amp;nbsp;mapView.when(() =&amp;gt; {&amp;nbsp; callback.&amp;nbsp; This will ensure that the mapView is fully initialized AND in scope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 13:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-javascript-api-widget-to-esri-s-angular-cli/m-p/792044#M70761</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-09T13:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Javascript API widget to Esri's Angular CLI boilerplate code</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-javascript-api-widget-to-esri-s-angular-cli/m-p/792045#M70762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="" data-placeholder="Traducción" dir="ltr" style="color: #222222; background-color: #f8f9fa; border: none; font-size: 28px; margin: -2px 0px; padding: 2px 0.14em 2px 0px;"&gt;&lt;SPAN lang="en"&gt;As the mentioned reference is added, I still can't find the solution&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 05:05:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-javascript-api-widget-to-esri-s-angular-cli/m-p/792045#M70762</guid>
      <dc:creator>Ministeriodel_Interior</dc:creator>
      <dc:date>2020-06-12T05:05:09Z</dc:date>
    </item>
  </channel>
</rss>

