<?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: Thumbnail url for BaseMapLayer by type? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49595#M4368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is using the standard basemaps. I'm trying to retrieve a thumbnail when using the layer by type constructor. There is a workaround for this I think, but that requires diving into the private members of the class I think.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 13:41:47 GMT</pubDate>
    <dc:creator>BrettLord-Castillo</dc:creator>
    <dc:date>2011-06-07T13:41:47Z</dc:date>
    <item>
      <title>Thumbnail url for BaseMapLayer by type?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49593#M4366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you create a BaseMapLayer using the type argument, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.dijit.BasemapLayer({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "OpenStreetMap"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there does not seem to be any way to get the thumbnail url for that type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the only choice to hardcode the url? Is there some way to retrieve the appropriate url and use it when creating a basemap from that basemap layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is part of a project to update my widgit of a dijit.layout.ContentPane with an embedded map object and now an embedded gallery. I would like the addBasemap layer function on that widget to be able to accept a basemap layer type as an argument, but it looks a bit dumb when the thumbnail is blank.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 18:47:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49593#M4366</guid>
      <dc:creator>BrettLord-Castillo</dc:creator>
      <dc:date>2011-06-02T18:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Thumbnail url for BaseMapLayer by type?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49594#M4367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When you create a BaseMapLayer using the type argument, e.g.&lt;BR /&gt;esri.dijit.BasemapLayer({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "OpenStreetMap"&lt;BR /&gt;});&lt;BR /&gt;there does not seem to be any way to get the thumbnail url for that type.&lt;BR /&gt;Is the only choice to hardcode the url? Is there some way to retrieve the appropriate url and use it when creating a basemap from that basemap layer?&lt;BR /&gt;This is part of a project to update my widgit of a dijit.layout.ContentPane with an embedded map object and now an embedded gallery. I would like the addBasemap layer function on that widget to be able to accept a basemap layer type as an argument, but it looks a bit dumb when the thumbnail is blank.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this is not you are looking for, i think this esri sample might give me some clue: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/widget/widget_basemapsthumbnail.html"&gt;http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/widget/widget_basemapsthumbnail.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 20:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49594#M4367</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-06-02T20:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Thumbnail url for BaseMapLayer by type?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49595#M4368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is using the standard basemaps. I'm trying to retrieve a thumbnail when using the layer by type constructor. There is a workaround for this I think, but that requires diving into the private members of the class I think.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 13:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49595#M4368</guid>
      <dc:creator>BrettLord-Castillo</dc:creator>
      <dc:date>2011-06-07T13:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Thumbnail url for BaseMapLayer by type?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49596#M4369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That is using the standard basemaps. I'm trying to retrieve a thumbnail when using the layer by type constructor. There is a workaround for this I think, but that requires diving into the private members of the class I think.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this code snippet anwser your question?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(basemapGallery, "onSelectionChange", function() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var basemap = basemapGallery.getSelected();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var basemapLayer = basemap.getLayers();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("basemap thumbnail url: " + basemap.thumbnailUrl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("basemap url: " + basemapLayer[0].url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 18:14:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49596#M4369</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-06-07T18:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Thumbnail url for BaseMapLayer by type?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49597#M4370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nope. The thumbnail Url is blank.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 17:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49597#M4370</guid>
      <dc:creator>BrettLord-Castillo</dc:creator>
      <dc:date>2011-06-08T17:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Thumbnail url for BaseMapLayer by type?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49598#M4371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you define your thumbnail URL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var streetBasemap = new esri.dijit.Basemap({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers: [streetTemplateLayer],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Streets",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thumbnailUrl: resPath + "/images/toolbar/Streets.png"
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; basemaps.push(streetBasemap);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it would know what URL to use?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnail-url-for-basemaplayer-by-type/m-p/49598#M4371</guid>
      <dc:creator>DEWright_CA</dc:creator>
      <dc:date>2021-12-10T21:54:53Z</dc:date>
    </item>
  </channel>
</rss>

