Open klokan opened 10 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?
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...
Ok cool. Was just curious. Thanks! It would indeed be nice.
That OL3Cesium is very nice! :+1:
how about a GSoC project? sometimes brillant students can appear from nowhere and give excellent contributions!
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
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.