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

Mapbox GL JS #14

Open
azran4u opened this issue Feb 2, 2019 · 4 comments
Open

Mapbox GL JS #14

azran4u opened this issue Feb 2, 2019 · 4 comments

Comments

@azran4u
Copy link

azran4u commented Feb 2, 2019

Hi,

I'm using mapbox-gl-js with tileset projected EPSG:4326.
My dataset is geoJSON WGS84.
Since Mapbox tries to display data as web mercator, data is not positioned in the correct location on map.
I'm trying to use dirty-reproject to convert the input geoJSON to output geoJSON so Mapbox displays it correctly. Yet, the command dirty-reproject --list doesn't have an epsg:4326 option.
Thanks,
Eyal

@dereklieu
Copy link
Contributor

@azran4u I always get my wgs'es mixed up with my epsg'es, but I believe your issue may be something in how your geojson data is processed. There is no difference between WGS84 and EPSG4326 that would be relevant to this module, so it's not included as an option.

https://gis.stackexchange.com/questions/3334/difference-between-wgs84-and-epsg4326

@azran4u
Copy link
Author

azran4u commented Feb 3, 2019

I agree with you, yet i'm trying to reproject a geojson so that mapbox gl will render it looking like 'epsg:4326'.

@azran4u
Copy link
Author

azran4u commented Feb 3, 2019

by looking like 'epsg:4326' I mean Plate-Carrée

@dereklieu
Copy link
Contributor

I see. Since this module uses D3 geo libraries for projection math, the projections that would be straightforward to achieve are all listed under the d3-geo-projection and d3-geo libraries. Perhaps these libraries have been updated since we developed this module, and more projections are available. If one of the ones listed at either of the links serves your purposes, but isn't listed as an option, I can look into integrating it.

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