Rendering VectorTileLayer on top of MapImageLayer

290
1
12-13-2021 02:19 AM
InbarAzulay
New Contributor

Hi,

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: https://codepen.io/isazulay/pen/KKXgzNE

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
UndralBatsukh
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? 

Thanks,

-Undral

0 Kudos