Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

407
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda