Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

401
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda