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

switch from flat Mercator projection to something more 3d-related #5955

Closed
bp-ouhaha opened this issue Sep 29, 2023 · 7 comments
Closed

switch from flat Mercator projection to something more 3d-related #5955

bp-ouhaha opened this issue Sep 29, 2023 · 7 comments

Comments

@bp-ouhaha
Copy link

Is your feature request related to a problem? Please describe.
I'm not happy to see the Electricity Live Map with all the distortion related to Mercator's projection in 2D. See here https://en.wikipedia.org/wiki/Mercator_projection#Distortion_of_sizes

Describe the solution you'd like
Like Google Earth, or any alternative in (real or fake) 3D, show the countries with their actual relative sizes in proportion. Ideally when scrolling around, notice it's a sphere or globe.

Describe alternatives you've considered
Many available that look more natural: https://en.wikipedia.org/wiki/List_of_map_projections

Additional context
Earth is not flat.

@jarek
Copy link
Collaborator

jarek commented Sep 29, 2023

Hi, thanks for the note! Do you know of any web mapping platforms or libraries that support other projections, or have best practices for mapping on the web that you can share? I notice that Google Maps website shows me Mercator, for example.

@bp-ouhaha
Copy link
Author

which platform are you currently using?

If it is Google Maps, I found these 2 links:
https://developers.google.com/maps/documentation/javascript/examples/map-projection-simple
https://developers.google.com/maps/documentation/javascript/maptypes#Projections

I'm not an expert in web mapping platforms...

@bp-ouhaha
Copy link
Author

otherwise, there is a Google Earth API

@shuuji3
Copy link
Contributor

shuuji3 commented Sep 30, 2023

ElectricityMaps uses the map library, maplibre-gl (ref. https://github.com/electricitymaps/electricitymaps-contrib/blob/5c0215ee5b9390169e7210294b9cebe7d0dcdb9b/web/package.json#L85C1-L85C1)

It seems like the projection feature is in a future plan, but it doesn't support other projections yet at this moment (see maplibre/maplibre-gl-js#168).

@phiphou
Copy link
Contributor

phiphou commented Oct 1, 2023

I don't think a 3D version would be as simple to use (Google Earth on mobile is a hell to use).

In a planar mode, the best compromise between shapes, areas and distances is the Winkel Triple projection.

It's more accurate and "real" but people would probably be confused with it.

Mercator projection is used everywhere, even if it's not the best.

If projection is a wanted feature, it could be an option in settings panel.

@bp-ouhaha
Copy link
Author

when I read about maplibre, I end up on these 2 interesting pages:

does it sound like it's coming soon?

@VIKTORVAV99
Copy link
Member

As many have pointed out in here this is technically not possible right now so even if we wanted to do this is it not possible. Not to mention that updating to a new maplibre version will not be a trivial task as they have introduced a lot of breaking changes.

This means I will be closing this issue (for now).

With that said, I do hope maplibre adds support for it sooner rather than later so we can start testing if this is something we can actually do with our current maps and overlays.

@VIKTORVAV99 VIKTORVAV99 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants