Thank you very much.This is really help me and it's work Great !Regards.
var basemapGallery = new esri.dijit.BasemapGallery({ showArcGISBasemaps: true, map: map }, "basemapGallery"); var basemapLayer = new BasemapLayer({ url:"url/of/empty/basemap/mapservice" }); var emptyBasemap = new Basemap({ layers: [basemapLayer], title: "Empty Basemap", thumbnailUrl: "url/of/empty/image" }); basemapGallery.add(emptyBasemap); basemapGallery.startup();
Am I creating an ArcGISTiledMapServiceLayer?
var basemapLayer = new BasemapLayer({ url:"url/of/empty/basemap/mapservice" }); var emptyBasemap = new Basemap({ layers: [basemapLayer], title: "Empty Basemap", thumbnailUrl: "url/of/empty/image" }); basemapGallery.add(emptyBasemap);
Create a basemapLayer with the service just published
Create a basemap fed in the basemapLayer
All basemaps added to the gallery need to have the same spatial reference. If the default ArcGIS.com basemaps are used then all additional items added to the gallery need to be in Web Mercator (wkids: 102100, 102113 and 3857). If the default basemaps are not used you can add basemaps in any spatial reference as long as all the items added to the gallery share that spatial reference. To achieve the best performance, it is recommended that all basemaps added to the gallery are cached (tiled) layers.
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.