plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Add more projection options to Mapbox map layers in Python

Open wybert opened this issue 2 years ago • 8 comments

I am not sure if I should put this feature request should be here or in Plotly.py I put one in Plotly.py https://github.com/plotly/plotly.py/issues/4189#issue-1696621984

Hi, I would like to see projection support in Mapbox map layers like, px.scatter_mapbox, such as 'globe' projection (which will make a tile-based 3d globe map). I noticed that Plotly is integrated with Mapbox-gl, and the Mapbox-GL support different projections, so it should be easy to have this option in Plotly. It looks like it's already supported in scatter_geo (see the doc)but not Mapbox layers.

See projections support in Mapbox-GL here. See what's looks like with projection here, image image

wybert avatar May 04 '23 20:05 wybert

According to their docs page you linked:

Starting from v2.6, Mapbox GL JS supports multiple map projections.

Unfortunately we can't advance beyond v1.x of mapbox-gl because they changed their license to one that's incompatible with use in libraries like ours. You can read more about this here: https://www.geoapify.com/mapbox-gl-new-license-and-6-free-alternatives

alexcjohnson avatar May 05 '23 14:05 alexcjohnson

MapLibre is an open-source continuation of Mapbox v1. Incidentally, they have recently released a bounty for a map view . Would Plotly ever consider replacing Mapbox with MapLibre?

this-josh avatar Jun 18 '23 10:06 this-josh

MapLibre is an open-source continuation of Mapbox v1. Incidentally, they have recently released a bounty for a map view . Would Plotly ever consider replacing Mapbox with MapLibre?

That's interesting. @this-josh Are you interested in submitting a PR request?

archmoj avatar Jun 19 '23 13:06 archmoj

Sorry I looked into this and don't believe I'm able to at the moment.

this-josh avatar Jul 27 '23 07:07 this-josh

See #5578 and https://github.com/plotly/Plotly.NET/issues/282#issuecomment-1158978919

griff-rees avatar Nov 26 '23 19:11 griff-rees

@archmoj , there is some projection support now in MapLibre https://maplibre.org/maplibre-style-spec/projection/ , starting with experimental globe mode (update on that in the May newsletter here).

Let me know if you need anything for a migration to MapLibre.

birkskyum avatar Jun 01 '24 11:06 birkskyum

@archmoj , there is some projection support now in MapLibre https://maplibre.org/maplibre-style-spec/projection/ , starting with experimental globe mode (update on that in the May newsletter here).

Let me know if you need anything for a migration to MapLibre.

Thanks @birkskyum for the note. Please feel free to open a pull request. cc: #5578

archmoj avatar Jun 05 '24 17:06 archmoj

@gvwilson @archmoj Can I also suggest: https://github.com/vasturiano/react-globe.gl

SterlingButters avatar Oct 29 '25 17:10 SterlingButters