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

173
Views
TypeError no capturado: no se pueden leer las propiedades de undefined (leyendo 'lat')

He intentado implementar el evento onClick usando este complemento vectorGrid como se muestra a continuación,

 const vectorGrid = L.vectorGrid.slicer(street, { rendererFactory: L.svg.tile, maxNativeZoom: 19, maxZoom: 20, interactive: true, getFeatureId: function (f) { return f.properties.name; }, }) .on("click", function (e) { console.log(e); }) .addTo(map);

Cuando hice clic en la capa, muestra el siguiente error,

 Uncaught TypeError: Cannot read properties of undefined (reading 'lat') at Object.project (Projection.SphericalMercator.js:24) at Object.latLngToPoint (CRS.js:28) at i.project (Map.js:993) at i.latLngToLayerPoint (Map.js:1015) at i.latLngToContainerPoint (Map.js:1072) at i._fireDOMEvent (Map.js:1434) at i._handleDOMEvent (Map.js:1397) at HTMLDivElement.c (DomEvent.js:92)

En este registro de errores, no encontré el error vinculado a mi archivo de cuadrícula vectorial. Por favor, ayúdame, ¿cómo puedo resolver este problema?

Enlace al jsfiddle: https://jsfiddle.net/iamtekson/a6s4qj8p/6/

Nota: He probado este complemento en estas versiones de folletos (1.0.0 a 1.2.0) que funcionan bien. Pero con la última versión del folleto, el complemento está desactualizado.

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!