var streetBasemap = new esri.dijit.Basemap({ layers: [streetTemplateLayer], title: "Streets", thumbnailUrl: resPath + "/images/toolbar/Streets.png" }); basemaps.push(streetBasemap);
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.
When you create a BaseMapLayer using the type argument, e.g.esri.dijit.BasemapLayer({ type: "OpenStreetMap"});there does not seem to be any way to get the thumbnail url for that type.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?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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.