Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

404
Views
leaflet-webgl-heatmap - TypeError: leaflet__WEBPACK_IMPORTED_MODULE_6___default.a.webGLHeatmap no es un constructor

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)
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!