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

400
Views
leaflet-webgl-heatmap - TypeError: leaflet__WEBPACK_IMPORTED_MODULE_6___default.a.webGLHeatmap is not a constructor

I am using leaflet-webgl-heatmap in my VueJs application. It is giving me the following error:

TypeError: leaflet__WEBPACK_IMPORTED_MODULE_6___default.a.webGLHeatmap is not a constructor

The code is the following:

<div id="heat-map" style="height: 400px"></div>

In the script I am doing the import as:

import L from 'leaflet'
import 'leaflet-webgl-heatmap'

and

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!