Leverages Glii for not going insane with the WebGL bits, and Arrugator for calculating the triangle mesh for raster reprojection.
Leverages [Glii](https://gitlab.com/IvanSanchez/glii) for not going insane with the WebGL bits, and [Arrugator](https://gitlab.com/IvanSanchez/arrugator) for calculating the triangle mesh for raster reprojection.
### Demo
...
...
@@ -12,7 +12,13 @@ The demo linked above uses a downsampled version of the [N5000 raster dataset fr
### Usage
This adds a `L.imageOverlay.arrugator` factory to the Leaflet namespace.
This Leaflet plugin adds a `L.ImageOverlay.Arrugator` class and a `L.imageOverlay.arrugator` factory to the Leaflet namespace.
Load the plugin in a `<script>` tag, from a local copy or from a CDN, e.g.
Even though the name of the plugin is `L.ImageOverlay.Arrugator`, this class does **not** inherit from `L.ImageOverlay` but, rather, implements parts of `L.Canvas` to support a glii-powered WebGL rendering.
This shouldn't be a problem, but is worth mentioning.
The epsilon for the arrugator triangulation process cannot be changed after instantiation (yet).
### Legalese
Released under the General Public License, v3. See the LICENSE file for details.