hessi2
Forum Replies Created
-
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Das hatte ich komplett vergessen. Ja, habe nun auch 6.0.2. Mist.
Der Shortcode steht immer bei den Beispielen im o.a. Link dabei. Nur eben ohne eckige Klammern.
Edit:
Ich weiß nicht genau warum und wieso, aber jetzt funktionieren die Karten ganz normal und es wird auch Dein DSGVO-Snippet angezeigt, so wie es soll.Wenn das von Anfang an in Leaflet integriert wäre, hätte ich vermutlich diese Probleme überhaupt nicht gehabt? (Vorschlag)
Noch ein Hinweis:
Dein Hinweistext steht nur auf der ersten Karte, wenn mehrere Karten auf der Seite geladen werden.
Das ist insofern doof, weil jemand, der einen direkten Link auf eine Überschrift, unter der eine Karte steht, hat, diesen Text nicht sieht und nicht weiß, warum ihm die Karte angezeigt wird.
Vielleicht lässt sich dieser Fehler leicht beheben? (Vorschlag)Und ich wäre auch ein Fan davon, wenn Raruto Deine Art des Fehlerabfangens (Weltkarte) übernehmen könnte. Das ist für den User besser zu verstehen, als die Koordinaten von Halifax. Vielleicht noch ein Schriftzug “Error” auf dieser Karte? Dann gibt es kein Vertun.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Und zum Complianz-Fehler:
https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/leaflet-maps.phpund
https://complianz.io/custom-google-maps-implementation/
Da muss ich mich einlesen.
Aber vielleicht hilft es ja anderen?ENGLISH:
About the compliance error:
https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/leaflet-maps.phpand
https://complianz.io/custom-google-maps-implementation/
I have to read up on that.
But maybe it helps others?Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Noch ein Feedback:
– Polygone funzen mit der GitHub-Version nicht mehr.
– Alternative Kacheln ebenfalls nicht.
– Farbige Strecken sind weg.
– Auch die Ameisen sind tot.Sowohl im Backend in den Beispielen, als auch im Frontend:
https://hessburg.de/kartentest/8/Edit: Oh, das ist ein Problem von Leaflet selbst. Aber … das wurde doch gar nicht aktualisiert? Aber die ganzen Shortcode Helper sehen anders aus, als noch gestern? Es sind auch mehr? Ich verstehe gerade gar nichts mehr. 🙁
Sorry, wenn ich hier die Pferde scheu mache.- This reply was modified 3 years, 11 months ago by hessi2.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Noch eine OT-Frage: Kann ich das Evelation-Diagramm fest skalieren?
Hintergrund:
Auch eine relativ flache Strecke sieht sehr hügelig aus, weil die Skalierung (maximal angezeigte Höhe) mit der maximalen Höhe der Strecke variiert.Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Nochmals danke, auch für das aufmerksame Überfliegen (fehlende Map).
Nur rasch als Feedback:Habe ich in Complianz die Cookieverwaltung aktiviert, erscheint kein DSGVO-Hinweistext.
Habe ich die Cookieverwaltung in den abgesicherten Modus versetzt, erscheint alles wie es soll.
Ich habe einen Call bei denen aufgemacht. Das ist echt deren Problem, denke ich.
Forum: Fixing WordPress
In reply to: Difference Draft / Article (technical)No, it was the Complianz-Plugin.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Aus gegebenem Anlass will ich dieses Thema nicht breittreten. DS*hust*GV*hust*O.
Datenschutz ist echt mein Steckenpferd, ich habe auch viele Artikel darüber geschrieben, aber die DSGVO ist ein absoluter realitätsferner Murks.Was soll der Mist? Complianz blockiert den OSM-Cookie auch nach der Zustimmung?
Und warum passiert das nur in der Extension und nicht im Haupt-Plugin?Sorry, dass Du nun Arbeit wegen so einem Mist hattest. 🙁
So ein Mist gehört in die FAQ, da kommt doch kein Mensch drauf.Ich werde Complianz anschreiben, was das soll. Deren Support ist recht motiviert, denn das ist ja auch ein Kauf-Plugin.
Wenn alles durch ist, gebe ich Feedback. Hoffe, dass ich Dir auch mal irgendwie helfen kann.
Und noch ein Edit:
Das funktioniert nur mit dem Kartentest, nicht mit dem originalen Artikel. Da erscheint aber nun unter der Halifax-Karte ein Elevation-Diagramm.Edit 2:
Lustig. In meinen Dateinamen hatte ich “–” und WP “korrigiert” das beim Upload nach “-“. Habe nun die Files eben in den Uploads-Folder gepackt, statt die mit FTP zu uppen.
Search and Replace im Artikel und Problem behoben.
Lauft nicht bei mir, würde ich sagen.Edit 3:
Witzig! Das Forum macht das auch! Zwei Minus-Zeichen waren das, die zu einem konvertiert wurden und dann wurde das File nicht mehr gefunden.Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Es SIND die Cookies!
Moment bitte.Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Experimentiert:
Bisher funktioniert bei mir nicht:– Elevation
– Marker
– PolygonHabe weitere Experimente auf der Site protokolliert.
Da gab es noch weitere Seltsamkeiten. 😀- This reply was modified 3 years, 11 months ago by hessi2.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Es liegt irgendwie an der Elevation-Map.
https://hessburg.de/kartentest/
Normale Karten werden angezeigt.
Habe im WP-Forum nach dem Unterschied von Entwurf und Veröffentlichung gefragt. Mal sehen.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Nach der Neuinstallation ist nur die OSM-Map aktiv, korrekt?
Ja, dann habe ich die schon so ausprobiert.
Oder soll ich explizit die Map als Parameter angeben?Habe den Key rausgenommen, die Kart sieht nun etwas unhübscher aus.
Hat sich aber leider sonst nichts verändert.Wo liegt denn der Unterschied zwischen einem Entwurf und einem veröffentlichten Artikel? Ich muss das mal im WP-Supportforum fragen.
- This reply was modified 3 years, 11 months ago by hessi2.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Danke für die Mühen!
Ja, ich habe es nun in der Leaflet Extension erlaubt und auch den Link kopiert:[leaflet-map fitbounds] [elevation gpx=”https://hessburg.de/wp-content/uploads/2022/08//twizy-fahrt-1-OB-Karl.gpx”%5D
Aber es bleibt beim Alten: Vorschau ist okay, der veröffentlichte Artikel nicht.
Quellen ausgeschaltet:
leaflet.js:5 Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead. Error
at https://unpkg.com/leaflet@1.7.1/dist/leaflet.js:5:3170
at S.extend (https://unpkg.com/leaflet@1.7.1/dist/leaflet.js:5:3188)
at https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=hYkNsjo1i4sHlZbvjOXvA3mz5RjPTsyR&ver=2.0:44:15103
(anonym) @ leaflet.js:5
S.extend @ leaflet.js:5
(anonym) @ mq-map.js?key=hYkNsjo1i4sHlZbvjOXvA3mz5RjPTsyR&ver=2.0:44
complianz.min.js?ver=6.3.2:1 opt-in
construct-leaflet-map.min.js?ver=3.0.4:1 — version — v3.0.4
construct-leaflet-map.min.js?ver=3.0.4:1 TypeError: Cannot read properties of undefined (reading ‘getContainer’)
at i.addTo (leaflet-elevation.min.js:1:6249)
at (Index):825:2277
at t (construct-leaflet-map.min.js?ver=3.0.4:1:107)
at init (construct-leaflet-map.min.js?ver=3.0.4:1:355)
t @ construct-leaflet-map.min.js?ver=3.0.4:1
init @ construct-leaflet-map.min.js?ver=3.0.4:1
load (async)
(anonym) @ construct-leaflet-map.min.js?ver=3.0.4:1
(anonym) @ construct-leaflet-map.min.js?ver=3.0.4:1
leaflet-elevation.min.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘getPane’)
at i._initMarker (leaflet-elevation.min.js:1:16943)
at leaflet-elevation.min.js:1:9420
_initMarker @ leaflet-elevation.min.js:1
(anonym) @ leaflet-elevation.min.js:1
Promise.then (async)
onAdd @ leaflet-elevation.min.js:1
addTo @ leaflet-elevation.min.js:1
(anonym) @ (Index):825
t @ construct-leaflet-map.min.js?ver=3.0.4:1
init @ construct-leaflet-map.min.js?ver=3.0.4:1
load (async)
(anonym) @ construct-leaflet-map.min.js?ver=3.0.4:1
(anonym) @ construct-leaflet-map.min.js?ver=3.0.4:1
leaflet-elevation.min.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘on’)
at leaflet-elevation.min.js:1:16076Testseite:
https://hessburg.de/kartentest/Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?Thanks again!
Cleaned .htaccess up:
# BEGIN Hessi – Leaflet
AddType application/gpx+xml gpx
RewriteRule .*\.gpx$ – [L,T=application/gpx+xml]# BEGIN WordPress
# Die Anweisungen (Zeilen) zwischen „BEGIN WordPress“ und „END WordPress“ sind
# dynamisch generiert und sollten nur über WordPress-Filter geändert werden.
# Alle Änderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
That’s all.
Nothing changes.Console on Chromium reported an error:
Inhalt für https://hessburg.de/wp-content/plugins/extensions-leaflet-map/leaflet-plugins/leaflet-elevation-2.2.6/dist/leaflet-elevation.min.js.map: HTTP-Fehler: Statuscode 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE konnte nicht geladen werden
Yes, right, leaflet-elevation.min.js.map does not exist.
There are only:leaflet-elevation.css
leaflet-elevation.js
leaflet-elevation.min.css
leaflet-elevation.min.jsRegards
Michael
Edit:
If I trie to uplod the gpx-Files via WP, I still get:
„twizy-fahrt–7-Fritzlar-Kassel2.gpx“ konnte nicht hochgeladen werden.
Du bist leider nicht berechtigt, diesen Dateityp hochzuladen.Edit 2:
However, if I allow uploading via the Setting in the Leaflet Extensions, it works.This means that the .htaccess is not interpreted correctly, right?
Edit 3
Used the uploades Files from WP Mediathek:
[leaflet-map fitbounds]
[leaflet-gpx src=”https://hessburg.de/wp-content/uploads/2022/08/twizy-fahrt-7-Fritzlar-Kassel2.gpx”%5D
Nothing changes.
Rolled back to Version 3.7.10 and it works again.
Sorry, I had updated the PHP version at the same time as the new Charts version appeared.
However, I can state that the 3.7.11 has problems with PHP > 7.4.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Zoom on Elevation-Map?It’s me.
Again. 🙁I don’t understand it. 🙁
Action taken:
– Cache(s) cleared
– Troubleshooting mode activated
– Reset Leaftlet Extensions
– Uninstalled both plugins
– WP “cleaned up” (WP Sweep)
– Tables optimised
– Both plugins reinstalled
– Updated PHP from 7.4 to 8.19And it still doesn’t work:
In the preview I see the route – published I don’t see it anymore.In Chromium there is no map at all, in Firefox the one from Halifax. No sign of life from Leaflet Extensions (Elevation).
I have now created an article with only the following content:
[leaflet-map lat=49.76171016424807 lng=8.685929786844 zoom=17]
Placeholder
[leaflet-map] [elevation gpx=”wp-content/maps/Ober-Beerbach-Herford-blanko.gpx”]
The normal leaflet map works.
The elevation does not work.Then I changed the following:
[leaflet-map] [elevation gpx=https://hessburg.de/wp-content/maps/Ober-Beerbach-Herford-blanko.gpx]
And also:
[leaflet-map] [elevation gpx=”https://hessburg.de/wp-content/maps/Ober-Beerbach-Herford-blanko.gpx”%5D
Finally, I just used the example code:
[leaflet-map fitbounds]
[leaflet-gpx src=https://cdn.jsdelivr.net/gh/mapbox/togeojson@master/test/data/run.gpx color=black]
Again, this only works in the preview of the article.
What could I be doing wrong?