akoelsch
Forum Replies Created
-
Forum: Plugins
In reply to: [Extensions for Leaflet Map] layerswitch options not consideredJust got around to testing it. Looks good. Thank you!
Forum: Plugins
In reply to: [Extensions for Leaflet Map] multiple zoom buttons in case of multiple tracksSounds good. You’re right, I don’t need hover here ??
Okay, thanks for the explanation. Will
elevation-tracks
be deprecated then?Forum: Plugins
In reply to: [Extensions for Leaflet Map] layerswitch options not consideredSure!
mapid: OpenTopoMap Attribution: Map data: ? <a >OpenStreetMap</a> contributors, <a >SRTM</a> | Map style: ? <a >OpenTopoMap</a> (<a >CC-BY-SA</a>) Tile Server: https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png Extra Options: (optional): maxZoom: 17
For the record, I also tested attribution without HTML code, but that did not make a difference
Forum: Plugins
In reply to: [Extensions for Leaflet Map] position-marker not workingSuper, danke für die schnelle Antwort ??
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Custom IconsAhh, got it. So, custom icons work in both cases, but “defined” can additionally set iconSize etc.
- This reply was modified 3 years, 1 month ago by akoelsch.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Custom IconsCool. 1 and “defined” is the same for me, though
Forum: Plugins
In reply to: [Leaflet Map] Block OpenStreetMap with Borlabs CookieI use Complianz with a custom mu_plugin which you can find here
Forum: Plugins
In reply to: [Extensions for Leaflet Map] elevation gpx seems to auto-center the mapGreat, thanks for the update!
Forum: Plugins
In reply to: [Extensions for Leaflet Map] elevation gpx seems to auto-center the mapI would prefer it to be configurable with the fit parameters.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Block leaflet map before consentJust one last remark. Aren’t you missing the following line in your code?
add_filter( 'cmplz_dependencies', 'cmplz_leafletmaps_directory_plugin_dependencies' );
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Block leaflet map before consentHey, thanks for your response. Your snippet did actually help me. Even though I do not fully understand all the filters, I now managed to block the maps and automatically load them after consent. Here’s the mu-plugin I use:
<?php defined( 'ABSPATH' ) or die( "you do not have acces to this page!" ); /** * Block the script, and an inline script with string 'initMap'. * initMap can also be something else. That's the problem with custom maps :) * * @param $tags * * @return array */ function cmplz_leaflet_script( $tags ) { $tags[] = 'WPLeafletMapPlugin'; return $tags; } add_filter( 'cmplz_known_script_tags', 'cmplz_leaflet_script' ); /** * Conditionally add the dependency * $deps['wait-for-this-script'] = 'script-that-should-wait'; */ function cmplz_leaflet_dependencies( $tags ) { $tags['construct-leaflet-map.min.js'] = ''; $tags['window.WPLeafletMapPlugin.maps'] = ''; $tags['safari.js'] = ''; return $tags; } add_filter( 'cmplz_dependencies', 'cmplz_leaflet_dependencies' ); /** * Add a placeholder to a div with class "my-maps-class" - add CSS class to Column of Advanced Google Maps * @param $tags * * @return mixed */ function cmplz_leaflet_placeholder( $tags ) { $tags['openstreetmaps'][] = "leaflet-map WPLeafletMap"; return $tags; } add_filter( 'cmplz_placeholder_markers', 'cmplz_leaflet_placeholder' );
Is there a documentation page explaining all the filters or could you explain to me what cmplz_detected_services is doing? Apparently, my plugin works fine without it.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] [elevation gpx] breaks control itemsWell, yeah. You broke the waypoint icons though ??
Nvm, just saw, it’s configurable now. All good ??
- This reply was modified 3 years, 6 months ago by akoelsch.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Block leaflet map before consentCool, thank you very much!
PS: The problem of the non-blocked CSS file can be avoided by self-hosting this file.
- This reply was modified 3 years, 6 months ago by akoelsch.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] [elevation gpx] breaks control itemsIt happens when I try to zoom in to the max level – judging from the URL of the invalid tiles, I guess it’s level 20. The old version simply stopped zooming a level earlier