• Resolved anne81

    (@anne81)


    Hello everybody,

    i’m just considering switching my openstreetmap plugin. On the Page above i inserted the code like this:

    [___leaflet-gpx src=”https;//womie-blog.de/wp-content/uploads/2022/10/Italien-2022.gpx”___]

    …underscores added to make sure you can see this.

    All js and css files are stored locally. JS console shows nothing interesting, also no 404s while loading the page. Looks like i’m stuck.

    Is there anyone who can help?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor hupe13

    (@hupe13)

    1. You have a typo: https: not https;
    2. see https://de.ww.wp.xz.cn/plugins/extensions-leaflet-map/#my%20gpx%20file%20is%20not%20displayed%21
    3. You are using the plugin WP GDPR Compliance. This doesn’t work correctly. I didn’t need to accept, that the maps are loaded from external sources.

    Thread Starter anne81

    (@anne81)

    1. You’re right, stupid me, but…
    2. Yes, saw that. Could be, but in the network protocol i see no http request to the gpx file at all. It does load leaflet.js and togeojson.js locally (files are on my machine), but not the target file. Changed the .htaccess anyway, so if you request https://womie-blog.de/wp-content/uploads/2022/10/Italien-2022.gpx you are now prompted to download it, so far so good.
    3. Everything should be loaded locally, i am using a proxy. But i don’t see requests to this, either.

    Plugin Contributor hupe13

    (@hupe13)

    Did you specify [leaflet-map]?

    [leaflet-map fitbounds]
    [leaflet-gpx source="..."]
    Thread Starter anne81

    (@anne81)

    Aaah, _both_ is needed. OK, now we’ve got requests, a map…and a bunch of errors:

    Source-Map-Fehler: Error: NetworkError when attempting to fetch resource.
    Ressourcen-Adresse: moz-extension://5abe86f2-8c1b-4445-9153-a10eb4632b2f/lib/tp/browser-polyfill.min.js
    Source-Map-Adresse: browser-polyfill.min.js.map
    
    Uncaught TypeError: x is null
        get https://womie-blog.de/togeojson.js?ver=3.0.5:15
        gpx https://womie-blog.de/togeojson.js?ver=3.0.5:302
        onreadystatechange https://womie-blog.de/wp-content/plugins/leaflet-map/scripts/leaflet-ajax-geojson.min.js?ver=3.0.5:1
        onAdd https://womie-blog.de/wp-content/plugins/leaflet-map/scripts/leaflet-ajax-geojson.min.js?ver=3.0.5:1
        _layerAdd https://womie-blog.de/leaflet.js:5
        whenReady https://womie-blog.de/leaflet.js:5
        addLayer https://womie-blog.de/leaflet.js:5
        addLayer https://womie-blog.de/leaflet.js:5
        addLayer https://womie-blog.de/leaflet.js:5
        addTo https://womie-blog.de/leaflet.js:5
        WPLeafletgpxShortcode https://womie-blog.de/testseite/:323
        t https://womie-blog.de/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.0.5:1
        init https://womie-blog.de/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.0.5:1
        EventListener.handleEvent* https://womie-blog.de/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.0.5:1
        <anonymous> https://womie-blog.de/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.0.5:1
    togeojson.js:15:26
    Source-Map-Fehler: Error: request failed with status 404
    Ressourcen-Adresse: https://womie-blog.de/leaflet.js
    Source-Map-Adresse: leaflet.js.map
    Plugin Contributor hupe13

    (@hupe13)

    Typo in .htaccess: 😉

    AddType application/gpx+xml gpx
    RewriteRule .*.gpx$ – [L,T=application/gpx+xml]

    Google Chrome says “application/gpx+xmk”.

    Thread Starter anne81

    (@anne81)

    OK, looks like it’s not my best day today. Thanks so much for helping.

    Plugin Contributor hupe13

    (@hupe13)

    Schön, dass es nun funktioniert.

    3. Everything should be loaded locally, i am using a proxy. But i don’t see requests to this, either.

    Ich habe mich auf deiner Webseite umgesehen und war im “Ossiland” unterwegs. 😉
    Zumindest auf dieser Seite werden die Kacheln von openstreetmap.org geladen.

    Thread Starter anne81

    (@anne81)

    Ja, das sind noch die Karten vom alten Plugin, das nun rausfliegen soll, weil es keinen Proxy unterstützt und auch sonst einen Haufen Nachteile hat. Im Moment ist nur die Karte auf der Testseite neu. Da spiele ich gerade mit Optionen, insgesamt sehr nice.

    Thread Starter anne81

    (@anne81)

    Danke fürs Helfen

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Map not showing’ is closed to new replies.