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

Document web mercator requirement #94

Closed
gavinr opened this issue Jun 14, 2021 · 6 comments · Fixed by #95
Closed

Document web mercator requirement #94

gavinr opened this issue Jun 14, 2021 · 6 comments · Fixed by #95

Comments

@gavinr
Copy link
Contributor

gavinr commented Jun 14, 2021

As mentioned, we should document this: #86 (comment)

Also, since it's tripping other up, we should add a console.error() (or console.warn()?) message to show when not using web mercator

@jwasilgeo
Copy link
Contributor

@gavinr @patrickarlt to catch this one and put in a warning for L.esri.Vector.vectorTileLayer right about at this spot, which of these spatialReference.wkid properties do we want to rely upon?

  • service.initialExtent.spatialReference.wkid
  • service.fullExtent.spatialReference.wkid
  • service.tileInfo.spatialReference.wkid

Ref: https://developers.arcgis.com/rest/services-reference/enterprise/vector-tile-service.htm

@gavinr
Copy link
Contributor Author

gavinr commented Jun 17, 2021

My vote would be service.tileInfo.spatialReference.wkid

@jwasilgeo
Copy link
Contributor

This is available now in the recent v3.1.0 release. 🎉

@scaddenp
Copy link

There are a lot vector tile layers in another projection that have been published on arconline that I would like to use. Is it a lost cause to be able to use them in leaflet or is it a programming issue that just needs somebody to work on it?

@jwasilgeo
Copy link
Contributor

@scaddenp a good explanation for this limitation is described here: #86 (comment)

For now we have to wait and hope for mapbox-gl-js v1 (or maplibre-gl-js) to add this functionality.

@scaddenp
Copy link

Hmm, this is complicated by the whole "make mapbox work in non-mercator tiles" which is a larger problem than rendering a non-mercator VectorTileService. I think I need a deep dive into code at some point. Support for the ESRI tiling schemes already exists in the leaflet code - in image tile services. A native renderer for pbf looks to be the crux.

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

Successfully merging a pull request may close this issue.

3 participants