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

Nothing displayed when usind CRS EPSG4326 #92

Closed
tylkomat opened this issue Mar 30, 2017 · 2 comments
Closed

Nothing displayed when usind CRS EPSG4326 #92

tylkomat opened this issue Mar 30, 2017 · 2 comments

Comments

@tylkomat
Copy link

tylkomat commented Mar 30, 2017

I created an Example at https://github.com/tylkomat/leaflet-vectorgrid-epsg4326
Just clone an run with your favourite webserver, I was using autoreload-server.

When loaded normally via L.geoJSON(...).addTo(map) the map is properly displayed.

@perliedman
Copy link
Member

perliedman commented Apr 3, 2017

Hi there,
I think the problem is that slicer's underlying library, geojson-vt is hardwired to use EPSG:3857 (Spherical Mercator, Leaflet's default projection), see https://github.com/mapbox/geojson-vt/blob/master/src/convert.js#L94. This means it is essentially non-compatible with other projections.

@IvanSanchez perhaps we should see to that slicer throws or at least writes a warning when you try to add it to a map with another projection?

@perliedman
Copy link
Member

Related: mapbox/geojson-vt#57

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

No branches or pull requests

2 participants