webglearth / webglearth2

[UNMAINTAINED] WebGL Earth 2 - the source code of the project
Apache License 2.0
888 stars 213 forks source link

Leaflet Plugin #14

Open klokan opened 10 years ago

klokan commented 10 years ago

There is an interest in making the WebGL Earth a proper Leaflet plugin, according the: https://github.com/Leaflet/Leaflet/blob/master/PLUGIN-GUIDE.md

This ticket propose the architecture changes and possible way how to implement the bindings.

trusktr commented 9 years ago

LeafletJS is a amp engine. Doesn't seem like it'd make sense to combine them. For example, webglearth and leafletjs both load map tiles and decide how to render them.

Would the pluygin just basically be an adapter, so f.e. people use the leaflet API they are comfortable with, but under the hood there's no leaflet, just webglearth rendering?

klokan commented 9 years ago

Yes. It would still be an adapter - but we could fully reuse all basic types (LatLng, LatLngBounds, ...) and bring the two projects much closer together and correctly wrap or extend (almost) all of the publicly documented standard Leaflet API.

In the end it would be quite similar to OL3Cesium we have just developed and released, which is doing something similar to OpenLayers V3: http://blog.klokantech.com/2014/11/ol3-cesium-third-dimension-for.html

Unless we get a client on this, we can't work on it...

trusktr commented 9 years ago

Ok cool. Was just curious. Thanks! It would indeed be nice.

trusktr commented 9 years ago

That OL3Cesium is very nice! :+1:

nemesifier commented 9 years ago

how about a GSoC project? sometimes brillant students can appear from nowhere and give excellent contributions!

stirringhalo commented 8 years ago

As an extension to this, I'm exploring how to semi-dynamically switch between the Leaflet and WebglEarth2, especially when using MapBox GL vectors in the leaflet map through this project: https://github.com/mapbox/mapbox-gl-leaflet