The goal is to save the state of a basemap from the basemap gallery, then re-render it later. I have done this sucesfully with all my basemap using the below portalItem.id however there are a few basemaps with null portalItem object (i.e. no portalItem.id (arcgis 4.x)
<SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">basemapGallery</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">activeBasemap </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">portalItem</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">"588f0e0acc514c11bc7c898fed9fc651"</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">}};</SPAN>i.e.
<SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">baseLayers</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(...)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(...)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">load</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">Æ</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">()</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">loadError</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(...)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">loadStatus</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(...)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">loadWarnings</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(...)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">loaded</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(...)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"></SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">**</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">portalItem</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">:</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">null</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">**</SPAN>
Is there anything I could do to create some-type of handler so I can save my selection of these maps as well, then re-render later as I am doing with the others?
I have tried setting a portalItem in the below format, but still fails. Anything I could here?
<SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">newBasemap</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">===</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">'shaded_relief_light'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">else</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">newBasemap</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">===</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">'shaded_relief_dark'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">else</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">newBasemap</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">===</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">'world_nav_charts'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">else</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">newBasemap</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">===</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">'skyvector_hi_map'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">else</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">newBasemap</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">===</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">'skyvector_lo_map'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">newBasemap</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">===</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">'skyvector_vfr_map'</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">}</SPAN>I have also tried generating ones for those few that do not have them.
<SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">if</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">myCoolApp</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">widgets</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">basemapManager</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">basemapGallery</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">activeBasemap</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">portalItem</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">)</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> basemapSaved </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> myCoolApp</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">widgets</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">basemapManager</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">basemapGallery</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">activeBasemap</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">portalItem</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> coolGuy</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">baseMapId </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> basemapSaved</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">;</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">}</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">else</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">{</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">let</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> r </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">Math</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">random</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">().</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">toString</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">36</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">).</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">substring</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">7</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> myCoolApp</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">widgets</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">basemapManager</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">basemapGallery</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">activeBasemap</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">portalItem</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">id </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">=</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> r console</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">.</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">log</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">(</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">r</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">);</SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"> </SPAN><SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;">}</SPAN>