- add match/interpolate/zoom convenience functions, somewhat experimental
- revert to internally using
map.addLayer
rather thanmap.setStyle
for performance
- fixed UMD packaging some more by removing
esmodules: true
from rollup config.
- fix UMD packaging (thanks @lasseborly!)
- fix ESM packaging (class properties not transformed properly)
- update to Mapbox GL Style Spec 13.22 ("sky" properties)
- rename to Map-GL-JS and explicitly support Maplibre GL JS
- add Flow types
- add JSdocs and use documentation.js to make documentation
- change the packaging again, so
dist/index.esm.js
is the default, ES module, andumd/index.js
is the UMD module.
- remove kebab-case dependency
- scrapped the CommonJS build. NodeJS is able to handle ES modules these days.
- rewrote the "arrayify" logic
- correctly handle 'hover' transitions across overlapping layers
- probably correctly gives an "off" handler so this kind of thing works:
const off = map.U.hoverPointer(['layer1','layer2']); /* ... */ off()
- more tests
onLoad()
now returns a promise if no callback provided.
- added UMD build so you can use directly in the browser at https://unpkg.com/mapbox-gl-utils or https://unpkg.com/[email protected]/dist/index.min.js . #27
- added es6 build as "module" parameter in package.json