[elevation gpx] breaks control items
-
If I use [elevation gpx] to include a track, the control icons (zoom and home) are missing.
Workaround: include the track twice with [elevation gpx] and [leaflet-gpx]. Since this also includes the waypoints twice, one should also use [hidemarkers].
Not sure if this is a bug or intended behavior…?
-
This uses the standard zoom buttons from leaflet-map:
[leaflet-map fitbounds zoomcontrol] [elevation gpx="...."]This uses Zoomhome:
[leaflet-map fitbounds] [elevation gpx="...."] [zoomhomemap]leaflet-gpxandelevationare using different methods displaying the track, geojson resp. gpx.js. You should only use one of them:leaflet-gpxif you don’t want an elevation profile,elevationshows an elevation profile.P.S.: Maybe I should document it better.
-
This reply was modified 4 years, 8 months ago by
hupe13.
Yeah, that’s what I thought. The latter doesn’t work though. It only works if I add a [leaflet-gpx] or [leaflet-marker] which apparently has to be added *before* [zoomhomemap]
-
This reply was modified 4 years, 8 months ago by
akoelsch.
The latter doesn’t work though
Which code you are using? Do you have a link to your site?
Sure. https://die-berge-rufen.de/2021/09/06/3-gipfeltour-ueber-rotspitze-heubatspitze-und-breitenberg/
[leaflet-map fitbounds] [leaflet-marker lat=47.483831 lng=10.388992]Parkplatz Säge[/leaflet-marker] [elevation gpx="https://die-berge-rufen.de/wp-content/uploads/2021/09/3-Gipfeltour-Rotspitze-Heubatspitze-Breitenberg.gpx" !legend] [fullscreen] [hover] [zoomhomemap]If I remove the leaflet-marker, the control icons are gone
I don’t see any waypoints in it.
There are none. Would they be necessary? I added a marker using the shortcode. If I remove this line, the control icons are gone
The marker is necessary in the actual version of the plugin. You can test the new one from Github.
Ahh, cool. Will I still get the updates from WordPress if I just clone the github code now?
I have a clone in an extra directory e.g. plugins/extensions-leaflet-map-github and activate either the original or that from Github. But don’t delete one of these plugins via the admin interface. All your settings for that plugin will be deleted.
Good idea. Works now. For some reason, both Plugins are named “Extensions for Leaflet Map Github” in the wp dashboard now.
Interesting. In my admin interface shows:
Extensions for Leaflet Map Activate | Translate Extensions for the WordPress plugin Leaflet Map Version 2.1.1 | By hupe13 | View details Extensions for Leaflet Map Github Deactivate | Translate | Settings Extensions for the WordPress plugin Leaflet Map Version 2.1.1 | By hupe13 | Visit plugin siteTake care of the links, when you click one. It should be
extensions-leaflet-maporextensions-leaflet-map-github.I have Loco Translate installed, that’s why shows “Translate”.
Hmm, strange. Anyways, thanks for fixing this bug 🙂
Edit: I just found out, it was because I pasted the last release from github over the wp-release plugin files. oups
-
This reply was modified 4 years, 8 months ago by
akoelsch.
unrelated to this bug, but probably worth noting: The current github version of the plugin tries to load some invalid tiles when the map is loaded. I didn’t want to create a separate ticket for this, since this plugin version is still unstable
NS_BINDING_ABORTED? I see this also, but I don’t know, how to solve this.
No, just some 400’s that showed up in the console. But I cannot reproduce it at the moment :-/
-
This reply was modified 4 years, 8 months ago by
The topic ‘[elevation gpx] breaks control items’ is closed to new replies.