Hi Everyone,
I am getting this really weird log entry in the console while loading a base map layer and on click it.
//Creating a base map gallery widget
var basemapGallery = new BasemapGallery({
id: "basemapGallery",
map: this.map,
showArcGISBasemaps: true,
portalUrl: this.config.sharinghost,
basemapsGroup: this._getBasemapGroup()
}, domConstruct.create("div", {}, basemapDiv));
//adding a base map layer into the base map gallery widget
var additionalBasemap = new esri.dijit.Basemap({
layers: [new esri.dijit.BasemapLayer({
url: "Provincial_Basemap_A/Latest (MapServer)",
opacity: 1
})],
title: "Provincial Basemap A"
});
basemapGallery.add(additionalBasemap);
basemapGallery .startup();
Added layer is visible in the Base map gallery widget. but tried to access that layer throws a console error:
Ravi,
It is the simple fact that all your basemaps have to be in the same spatial reference.
Yep, but need to show different spatial Reference layer in base map gallery widget. Do you have any suggestion and thoughts?
Ravi,
It is NOT possible to have two different spatial reference base maps in the gallery.