Trying to add my custom basemap to my map like
var customBasemap = new TileLayer({
url:"https://utility.arcgis.com/.../MapServer"
});
map.add(customBasemap);
But I'm getting this error:
message: "The spatial reference of this layer does not meet the requirements of the view"
name: "layerview:spatial-reference-incompatible"
Is there any way around this error?
Shakil,
No all TileLayers have to be in the same WKID (spatialreference) and cached at the same LODs to be used in the same map.
Shakil,
Did you manage to solve it?
Do you have the same problem in the Edge browser?
If you are in the Chrome browser, try with "Empty Cache and Hard Reload". (Ctrl + Shift + I will open the devloper mode. Right-click on the refresh icon in upper left corner and select the option "Empty Cache and Hard Reload".