AnsweredAssumed Answered

Map: Geometry (wkid: 102184) cannot be converted to spatial reference of the map (wkid: 102100)

Question asked by raviprakash on May 30, 2018
Latest reply on May 30, 2018 by rscheitlin

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:

Map: Geometry (wkid: 102100) cannot be converted to spatial reference of the map (wkid: 102184)
Map: Geometry (wkid: 102184) cannot be converted to spatial reference of the map (wkid: 102100)
If I tried to use this layer("World_Street_Map (MapServer)") to add as an additional layer. It's working fine.
Thanks for the help in advance.

Outcomes