trafficonese / leaflet.extras2

Extra functionality for leaflet R package.
https://trafficonese.github.io/leaflet.extras2/
GNU General Public License v3.0
85 stars 20 forks source link

Plugin Request: WebGL Earth Map 2 #25

Closed jzadra closed 2 years ago

jzadra commented 2 years ago

As far as I can tell there is currently no way to show a globe with R leaflet. There is, however, a project that will take a leaflet map and make it into a globe: https://www.maptiler.com/news/2014/07/webgl-earth-2-leaflet-compatible/

It would be great to have a way to do this with R!

trafficonese commented 2 years ago

It seems that the project is not maintained anymore and they are recommending to use Cesium. There is an R-package for that already: https://github.com/r-spatial/cesium

Would that also work for you?

Otherwise I can still look into it.

jzadra commented 2 years ago

I'll take a look at it and get back to you. It does not appear to have been updated since 2 years ago, and has no help documentation.

trafficonese commented 2 years ago

You are right, it does not seem to be fully working yet. You can render a globe, but not add any features on it. There is an example here usecase1

trafficonese commented 2 years ago

This library is not really a leaflet-plugin, it is more a replacement of leaflet. Based on the documentation all you have to do on the JS-side is to replace L with WE. This can't be done here, although I also think a library with this functionality would be nice.