Rendering VectorTileLayer on top of MapImageLayer

12-13-2021 02:19 AM
New Contributor


I want to render a VectorTileLayer on top of a MapImageLayer, but currently this results in a error. You can see this in this CodePen:

I want to do this because I want to center my Map based on X-Y coordinates on the MapImageLayer.

Is it possible to achieve this?

0 Kudos
1 Reply
Esri Regular Contributor

Hi there, 


You do not have a VectorTileLayer being added in your codepen. In any case, the spatialReference of your VectorTileLayer must match the spatialReference of the MapView since VectorTileLayer cannot be reprojected on the fly. If they have same projection and throwing an error then can you please update your codepen? 



0 Kudos