<?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: BasemapGallery labels issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713582#M66304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;absolutely&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://search.esri.com/results/index.cfm?do=support.index&amp;amp;start=0&amp;amp;q=NIM089693"&gt;http://search.esri.com/results/index.cfm?do=support.index&amp;amp;start=0&amp;amp;q=NIM089693&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;glad i was able to help sort you out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2014 18:02:52 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2014-02-06T18:02:52Z</dc:date>
    <item>
      <title>BasemapGallery labels issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713577#M66299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been working with the basemapGallery dijit and I noticed a bug... I was testing this in the sandbox:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=widget_basemap" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=widget_basemap&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue occurs when the map is initiated with the basemap: 'hybrid' .&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex. new Map("map", {basemap: "hybrid"....});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If a user then selects the satellite option from the basemapGallery, or any other, the labels for the hybrid imagery remain on the screen...&amp;nbsp; Initiating with basemap: "satellite", switching to hybrid.... and then back to satellite... removes labels as it should.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any solutions?&amp;nbsp; Thanks for reading...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 14:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713577#M66299</guid>
      <dc:creator>JeffreySchmidt</dc:creator>
      <dc:date>2014-02-06T14:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: BasemapGallery labels issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713578#M66300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This also occurs when initiating the map with the basemap: "gray".&amp;nbsp; The labels are retained when switching to a different basemap using the basemapGallery&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 14:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713578#M66300</guid>
      <dc:creator>JeffreySchmidt</dc:creator>
      <dc:date>2014-02-06T14:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: BasemapGallery labels issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713579#M66301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i agree this looks like a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;heres a technique you could use to workaround the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;//make a flag so that we only pull out the second basemap layer the first time its changed var isFirst = true; ... basemapGallery.on("selection-change", function() { &amp;nbsp;&amp;nbsp;&amp;nbsp; if (isFirst) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //check to make sure that the first basemap shown actually displayed two different tiled layers &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (basemapGallery.getSelected().title == "Imagery with Labels" || basemapGallery.getSelected().title != "Light Gray Canvas" || basemapGallery.getSelected().title != "Terrain with Labels") {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.removeLayer(map.getLayer(map.layerIds[1])); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set the flag to false so none of this code fires again &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isFirst = false;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 16:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713579#M66301</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-02-06T16:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: BasemapGallery labels issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713580#M66302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yup, just confirmed that this problem has definitely already been logged.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[NIM089693: If the BasemapGallery widget is initialized with a basemap that has a reference service for labels, the labels continue to display after switching to other basemaps.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry for the inconvenience.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 16:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713580#M66302</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-02-06T16:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: BasemapGallery labels issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713581#M66303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the code jgravois!&amp;nbsp; Do you know if there is a page where I may view the logged bugs/coming updates?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 17:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713581#M66303</guid>
      <dc:creator>JeffreySchmidt</dc:creator>
      <dc:date>2014-02-06T17:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: BasemapGallery labels issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713582#M66304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;absolutely&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://search.esri.com/results/index.cfm?do=support.index&amp;amp;start=0&amp;amp;q=NIM089693"&gt;http://search.esri.com/results/index.cfm?do=support.index&amp;amp;start=0&amp;amp;q=NIM089693&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;glad i was able to help sort you out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 18:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-labels-issue/m-p/713582#M66304</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-02-06T18:02:52Z</dc:date>
    </item>
  </channel>
</rss>

