Plugin Author
bozdoz
(@bozdoz)
Hey! Thanks for the heads up about this. I made some changes to the plugin. You should be able to update it to version 2.22.1 to access these new shortcode attributes. To simulate the top answer’s javascript (in a shortcode), you can use this:
[leaflet-map tileurl=https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken} attribution=”© OpenStreetMap contributors” mapid=”mapbox/streets-v11″ accessToken=your.mapbox.access.token tilesize=512 zoomoffset=-1]
Hi bozdoz,
that works great !!!
Thank you so much 😀
Hi bozdoz,
the map is in english language. Is there a way, to switch it into german language?
Thanks again 🙂
Plugin Author
bozdoz
(@bozdoz)
looks like there’s a german version of openstreetmap: https://wiki.openstreetmap.org/wiki/Tile_servers
So in settings you can change the default url to be:
https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png
instead of:
https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
Unfortunately that doesn’t work 🙁
Plugin Contributor
hupe13
(@hupe13)
What doesn’t work?
Kartenkachel-URL: https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png
Kartenkachel-URL-Subdomains: abcd
Standard Namensnennung: Daten von <a href="http://www.openstreetmap.org/">OpenStreetMap</a> - Veröffentlicht unter <a href="http://opendatacommons.org/licenses/odbl/">ODbL</a>
When I replace it with https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png, the labels are still in english. Example: Nuremberg instead of Nürnberg, Argentina instead of Argentinien.
Plugin Contributor
hupe13
(@hupe13)
Did you empty the cache? On my cards the names are in german.
Yes, and I don’t use a cache-plugin.