{ Dev Farm }

Web & Windows Development

leaflet Uncaught Error

Home Forum Wp Gpx Maps Support leaflet Uncaught Error

  • Questo topic ha 2 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 5 anni, 4 mesi fa da max.
Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
  • Autore
    Post
  • #77809 Rispondi
    Yulman
    Ospite

    Hi there,

    Thanks for this amazing plugin!

    Since the last version, I´m getting this error everytime I load one of my posts:

    Uncaught Error: Bounds are not valid.
    at e.fitBounds (leaflet.js?ver=1.3.1:5)
    at Leaflet.CenterMap (WP-GPX-Maps.js?ver=1.6.02:720)
    at Leaflet.AddWaypoints (WP-GPX-Maps.js?ver=1.6.02:701)
    at a.fn.init.$.fn.wpgpxmaps (WP-GPX-Maps.js?ver=1.6.02:890)
    at HTMLDocument.<anonymous> ((index):340)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    I can´t find any info about that…

    Am I the only one with this issue?

    Any ideas?

    Thanks a lot! :wacko:

    #81326 Rispondi
    Patrick W
    Ospite

    The problem is in /wp-content/plugins/wp-gpx-maps/js/WP-GPX-Maps.js line 888 :

    if (!jQuery.isEmptyObject(waypoints))

    Which wrongly evaluates to true, I change it to this and it works again:

    if (!jQuery.isEmptyObject(waypoints) && waypoints.length>0)

    #82236 Rispondi
    max
    Amministratore del forum

    thanks

Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
Rispondi a: Risposta #81326 in leaflet Uncaught Error

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.