<?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: BaseMapToggle widget is different in 4.11... in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220093#M20444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Kelly - now I get it. Either way, I'm glad that by use of Typescript and the jsapi types, I was alerted to this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Apr 2019 17:35:16 GMT</pubDate>
    <dc:creator>Arne_Gelfert</dc:creator>
    <dc:date>2019-04-04T17:35:16Z</dc:date>
    <item>
      <title>BaseMapToggle widget is different in 4.11...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220089#M20440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just noticed that the BaseMapToggle widget has properties renamed... found this thanks to the helpful error messages when using Typescript.&amp;nbsp;Used to be&amp;nbsp;for 4.10 as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;let&lt;/SPAN&gt; basemapToggle &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;BasemapToggle&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  view&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
  secondmap&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"satellite"&lt;/SPAN&gt;
&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;Now, it's&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;let&lt;/SPAN&gt; basemapToggle &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;BasemapToggle&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  view&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
  nextBasemap&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"satellite"&lt;/SPAN&gt;
&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;Not a big deal but I didn't see that in the &lt;A href="https://developers.arcgis.com/javascript/latest/guide/release-notes/" rel="nofollow noopener noreferrer" target="_blank"&gt;Release Notes&lt;/A&gt;. Is there a place to note observations like this that may be missing from documentation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220089#M20440</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-11T10:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: BaseMapToggle widget is different in 4.11...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220090#M20441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The property to select the alternate basemap has always been nextBasemap. We haven't had a property called secondmap. You can see nextBasemap working in this code pen but if you switch to secondmap it will use the default alternate basemap instead of the specified one (national geographic).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/kellyhutchins/pen/XQdmBx"&gt;https://codepen.io/kellyhutchins/pen/XQdmBx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code pen above is pointing to 4.10.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2019 16:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220090#M20441</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2019-04-04T16:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: BaseMapToggle widget is different in 4.11...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220091#M20442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I'm confused.... it's quite possible that I got it backward though. This is what I was using before and which seemed to work. (Source:&amp;nbsp;&lt;A href="https://developers.arcgis.com/labs/javascript/select-a-basemap/" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/labs/javascript/select-a-basemap/&lt;/A&gt;&amp;nbsp;) .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;In the main&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE&gt;function&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;, create a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html" style="color: #0079c1; background-color: #ffffff; text-decoration: none;" rel="nofollow noopener noreferrer" target="_blank"&gt;BasemapToggle&lt;/A&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;widget. Set the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE&gt;view&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE&gt;secondBasemap&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;property to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE&gt;satellite&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;

var basemapToggle = new BasemapToggle({     view: view,     secondMap: "satellite"   });&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-top: 0px; margin-bottom: 0rem;"&gt;&lt;SPAN style="background-color: #f6f6f6; font-family: inherit; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6; font-family: inherit; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6; font-family: inherit; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Interestingly, the text says 'secondBasemap' and the code 'secondmap'. Both wrong? So are you saying they never existed?&amp;nbsp; Anyway, like I said, it's working after I changed it to nextBasemap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220091#M20442</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-12T16:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: BaseMapToggle widget is different in 4.11...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220092#M20443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct the widget never had either a secondmap or secondBasemap property. I think it just looked like it was working because if the nextBasemap property isn't set a default base map (hybrid) is used. The thumbnail for hybrid looks similar to the one specified in the tutorial (satellite) so it gives the impression that it is working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll contact the team who built the tutorial and let them know its incorrect.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2019 17:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220092#M20443</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2019-04-04T17:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: BaseMapToggle widget is different in 4.11...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220093#M20444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Kelly - now I get it. Either way, I'm glad that by use of Typescript and the jsapi types, I was alerted to this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2019 17:35:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220093#M20444</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2019-04-04T17:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: BaseMapToggle widget is different in 4.11...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220094#M20445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree - this is one of the reasons I love using TypeScript to build apps.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2019 17:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaptoggle-widget-is-different-in-4-11/m-p/220094#M20445</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2019-04-04T17:38:04Z</dc:date>
    </item>
  </channel>
</rss>

