Mapbox-gl-js: Support epsg:4326

Created on 19 Feb 2017  路  6Comments  路  Source: mapbox/mapbox-gl-js

Hey guys,
I saw from earlier issues that you so support other projections,
But didn't find its use at the api section,
Is that feature enabled? Specifically for epsg:4326

Thanks in advance

Most helpful comment

I am not sure what's going on for this projection problem, I searched the issue, lots of people asked for this feature which is nicely supported in Openlayers, Leaflet and etc. As a mapping library with almost 2k stars, it is strange that some common concepts like projection crs are not supported.

I guess if this project is hosted by mapbox company whose most important assets are data with 3857 projection, they can not benefits from mapbox-gl-js unless the api and the data are bound together.

If true, I do not think mapbox-gl-js will support custom projection in the future. So people who need cusotm project may make a fork and customize it by yourself.

Anyway, mapbox-gl-js is a wonder library and mapbox is the most open geographic company as far as I know.

All 6 comments

By projections, I meant coordinate systems (probably)

EPSG:4326 === WGS84

Duplicate of #3184

Let me put it another way,
for the raster tiles, i could (and do) use epsg:900913,
but for the actual data i'm projecting, i'm using epsg:4236

The reliability of the actual positions and area of the polygons
that are projected is very important, and is the core usage for my application;
I haven't checked it yet, but lets say, if I'm projecting a polygon on a mounty area,
which recieved at EPSG:4236, and projected in that ellipsoide manner, but on a 900913 raster tile,
does it make a difference? or that stuff is being thought-through at the rendering stage?

Thank you so much for everything guys

Mapbox GL JS only supports Web Mercator/EPSG:900913, so you'll have to reproject other coordinate systems. When rendering EPSG:4326, you'll have a similar issue in that direct lines in that projection don't reflect the actual path as the crow flies. If you need these paths, you'll have to create intermediate points yourself, e.g. with something like cheap ruler or arc.js

I am not sure what's going on for this projection problem, I searched the issue, lots of people asked for this feature which is nicely supported in Openlayers, Leaflet and etc. As a mapping library with almost 2k stars, it is strange that some common concepts like projection crs are not supported.

I guess if this project is hosted by mapbox company whose most important assets are data with 3857 projection, they can not benefits from mapbox-gl-js unless the api and the data are bound together.

If true, I do not think mapbox-gl-js will support custom projection in the future. So people who need cusotm project may make a fork and customize it by yourself.

Anyway, mapbox-gl-js is a wonder library and mapbox is the most open geographic company as far as I know.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stevage picture stevage  路  3Comments

BernhardRode picture BernhardRode  路  3Comments

shotor picture shotor  路  3Comments

iamdenny picture iamdenny  路  3Comments

samanpwbb picture samanpwbb  路  3Comments