Support » Fixing WordPress » Error 404 on a KML link in leaflet js

  • Hi,

    i am trying to put a map on a wordpress website using leaflet.js.
    My div is displaying the map correctly but not a layer I would apply from a .kml file.

    To work the script need to load this:

    var track = new L.KML("/wordpress/wp-content/themes/mytheme/_include/97.kml", {async: true});

    But this path shows this: Failed to load resource: the server responded with a status of 404 (Not Found)

    I don’t understand why because it is working fine on my local WordPress…

    Any tip would be appreciated,

    Thank you!

  • The topic ‘Error 404 on a KML link in leaflet js’ is closed to new replies.