G
G
Goobert Crypto2020-07-12 20:13:15
JavaScript
Goobert Crypto, 2020-07-12 20:13:15

Uncaught Error: Invalid LatLng object: (undefined, NaN) how to fix?

omnivore
              .kml('kmz/kml_files/doc.kml')
              .on("ready", function(event){

    event.target.eachLayer(function(layer) {
      console.log(layer);

    });
    map.fitBounds(event.target.getBounds());
  })
              .addTo(map);

Good afternoon.
When connecting kml displays such an error, what can it mean?
5f0b05e0d5745502028630.png

Link to kml: https://drive.google.com/file/d/1Rloaavpd67Ig70vvP...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-07-12
@freeExec

Take a non-minified leaflet and debug until you realize the error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question