Error 404 on a KML link in leaflet js (1 post)

  1. jmarc_d
    Posted 2 years ago #


    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!

Topic Closed

This topic has been closed to new replies.

About this Topic