const map = new mapgl.Map({ ... }); // or: import U from 'map-gl-utils'; U.init(map); // A small number of methods (eg hoverPopup) require access to the maplibre-gl/mapbox-gl library itself, in order to instantiate other objects. require('map-gl-utils').init(map, mapgl);...