Earcut.js tessellation of polygons for WebGL display in Leaflet