Using webtilelayer as basemap

398
0
05-24-2019 04:12 AM
ae
by
Occasional Contributor

I want to use a webtilelayer as my basemap, and this webtilelayer has a spatial reference wkid 25833 (euref89). 

When I try to do this, the map never get loaded. I get the following error in the console:

"The spatial reference of this layer does not meet the requirements of the view" 

I've tried setting the spatial reference of the mapview, and the WebTileLayer, but this does not help.

I've created a codepen to illustrate my problem: 

https://codepen.io/anon/pen/ZNxXPB?editors=1000 

Does anyone know what I'm doing wrong? 

0 Kudos
0 Replies