Add utils for generating webgl buffers from lines and polygons

Uses @mapbox/earcut for polygon (what else), and a home made logic for lines
This commit is contained in:
Olivier Guyot
2022-03-16 18:09:44 +01:00
parent a18ffaed54
commit 143c19ca03
5 changed files with 523 additions and 7 deletions

View File

@@ -45,6 +45,7 @@
"url": "https://opencollective.com/openlayers"
},
"dependencies": {
"earcut": "^2.2.3",
"geotiff": "2.0.4",
"ol-mapbox-style": "^8.0.5",
"pbf": "3.2.1",