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

Support epsg:4326 #4296

Closed
KfirShainholtz opened this issue Feb 19, 2017 · 7 comments
Closed

Support epsg:4326 #4296

KfirShainholtz opened this issue Feb 19, 2017 · 7 comments

Comments

@KfirShainholtz
Copy link

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

@KfirShainholtz
Copy link
Author

By projections, I meant coordinate systems (probably)

@jingsam
Copy link
Contributor

jingsam commented Feb 20, 2017

EPSG:4326 === WGS84

@lucaswoj
Copy link
Contributor

Duplicate of #3184

@KfirShainholtz
Copy link
Author

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

@kkaefer
Copy link
Member

kkaefer commented Feb 22, 2017

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

@exotfboy
Copy link

exotfboy commented Jun 8, 2017

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.

@hy31337
Copy link

hy31337 commented Apr 30, 2021

我不确定这个投影问题是怎么回事,我搜索了这个问题,很多人都要求此功能,Openlayers,Leaflet等已很好地支持此功能。作为一个拥有近2k星的映射库,奇怪的是,一些常见的projection crs不支持类似的概念。

我想如果该项目由mapbox公司托管,而该公司最重要的资产是带有3857投影的数据,mapbox-gl-js除非将api和数据绑定在一起,否则它们将无法从中受益。

如果为真,我认为mapbox-gl-js将来将不支持自定义投影。因此,需要cusotm项目的人可以自己制作一个叉子并对其进行自定义。

无论如何,这mapbox-gl-js是一个奇迹图书馆,mapbox据我所知是最开放的地理公司。

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.

Hey, how did you solve the problem? Can you please share?

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

6 participants