Custom basemap spatial reference incompatible error 4.9

1882
2
10-18-2018 02:56 AM
ShakilChoudhury
New Contributor III

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?

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

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.

0 Kudos
JohanLundgren
Occasional Contributor

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".

0 Kudos