Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for tiledmapLayer is not strictly accurate. Can use alternatives to epsg:3857 #1357

Open
scaddenp opened this issue Apr 11, 2023 · 8 comments

Comments

@scaddenp
Copy link
Contributor

Description

The docs state: "Your map service must be published using the Web Mercator Auxiliary Sphere tiling scheme (WKID 102100/3857) and the default scale options used by Google Maps, Bing Maps and ArcGIS Online. Esri Leaflet will not support any other spatial reference for tile layers."

This is not strictly true. Other epsg can be used but you have to also use the proj4leaflet plugin. Many tiled layers are published in NZ with EPSG:2193 (a national grid) and I consume these with leaflet without issue provided they use the same tilesize. (and working on a fix for that too).

Link to page

No response

@jgravois
Copy link
Contributor

yup. there's an example here: https://developers.arcgis.com/esri-leaflet/samples/non-mercator-projection/

my impression is not that what you're saying isn't possible, just that they don't take responsibility for it working correctly.

@scaddenp
Copy link
Contributor Author

As stated, you would read that statement and give up immediately. A link to the sample would make it clear that it is actually possible.

@gavinr
Copy link
Contributor

gavinr commented May 8, 2023

@scaddenp thank you for the report. In your original post you said, "The docs state". What is the URL to the page from where you got that wording?

@scaddenp
Copy link
Contributor Author

scaddenp commented May 8, 2023

@patrickarlt
Copy link
Contributor

patrickarlt commented Jun 20, 2023

@scaddenp I propose we update to this:

Your map service should be published using the Web Mercator Auxiliary Sphere tiling scheme (WKID 102100/3857) and the default scale options used by Google Maps, Bing Maps and ArcGIS Online. Esri Leaflet does not officually support any other spatial reference for tile layers, however unofficial support maybe obtained though the the Proj4Leaflet plugin as shown in the projection samples.

Can you write up a sample showing the use of a non-mercator tileset that we can add to the samples? Currently we only show feature layers and dynamic map layers.

@scaddenp
Copy link
Contributor Author

scaddenp commented Jun 20, 2023

Should be able to but not immediately. Last weeks of FY has huge pressure on...
I should say that my maps are created from code that reads a configuration file which can have many type of map sources in it. The code to read those configurations and then build a map from them is not straightforward so I cant simply cut and paste from an existing application.

@pmacMaps
Copy link
Contributor

I have a CodePen sample that uses Proj4Leaflet and a tiled map service using state plane projection.

@gavinr-maps
Copy link
Contributor

gavinr-maps commented Sep 21, 2023

Thanks @pmacMaps! We are working on updating the warning language here and updating the non-mercator projection samples. The changes should be reflected on the documentation site soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants