Change the default vector map projection to 4326

558
1
08-14-2023 03:21 AM
acherniavskyi
New Contributor

Hi, I am using `esri-leaflet` library and wondering if it is possible to change the default projection to EPSG4326 without using GP server and tile layers? As I understood the default projection of vector basemap layer is 3857. The thing is I want to use vector layer that is transformed to different projection. Maybe something like this?

 

L.esri.Vector.vectorBasemapLayer("arcgis/oceans/base", {
  apikey: apiKey,
  projection: ...,
}).addTo(map);

 

If it is not possible maybe there are some ArcGIS GP servers that can provide different projections? Where may I find the list of such servers?

1 Reply
GavinRehkemper
Esri Contributor

Hi, thanks for the question. We do have a few samples showing different projections, but please note the cautionary statement from these pages:

This demo should be implemented at your own risk. Esri Leaflet only supports tiles that have been published in Web Mercator Auxiliary Sphere tiling scheme (WKID 102100/3857). Strong knowledge of projections, spatial references and tiling schemes is required for this.

 

0 Kudos