Estoy usando leaflet-webgl-heatmap en mi aplicación VueJs. Me esta dando el siguiente error:
TypeError: leaflet__WEBPACK_IMPORTED_MODULE_6___default.a.webGLHeatmap is not a constructor
El código es el siguiente:
<div id="heat-map" style="height: 400px"></div>
En el script estoy haciendo la importación como:
import L from 'leaflet' import 'leaflet-webgl-heatmap'y
const base = L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png') const map = L.map('heat-map', { layers: [base], center: this.centerLoc, zoom: 8 }) const heatmap = new L.webGLHeatmap({ size: 1000 }) heatmap.setData(this.getStopHeatMap); map.addLayer(heatmap)