Map Tile URL – Issue with base64 encoding
-
Hi all,
First, thanks for a great plugin. It is easy to use and very helpfull.
When updating from version 3.0.5 to 3.1.0, the map disappears (grey background). I have been using the “Map Tile URL” field on the settings page. This worked in version 3.0.5. For info, yes I use newest leaflets 1.9.3.
I have been using the plugin for approx.. two years.I’ve been troubleshooting and found out why and this is related to base64 encoding. Here are the URL I use: https://opencache.statkart.no\/gatekeeper\/gk\/gk.open_gmaps?layers=topo4\u0026zoom={z}\u0026x={x}\u0026y={y} (Norwegian free map)
I think certain special characters cannot be converted/encoded, because the line into class.map-shortcode.php
- Version 3.0.5
In folder: leaflet-map\shortcodes and file class.map-shortcode.php, Line 317 - Version 3.1.0
In folder: leaflet-map\shortcodes and file class.map-shortcode.php, Line 299
After updating, and before I do any modification, I only had a grey map with only showing the gpx track.
I editing class.map-shortcode.php on line 299 (version 3.1.0) to be like line 317 (version 3.0.5) and then all works becuase of the none encoding.
I fully understand why you added base64 encoding, and I have done this “modification” on a password protected test-site, but is it a bug that it fails to convert the link; https://opencache.statkart.no\/gatekeeper\/gk\/gk.open_gmaps?layers=topo4\u0026zoom={z}\u0026x={x}\u0026y={y} or should the URL now be written different becuase of the encoding now in 3.1.0 version? Because of some special characters?
If you want to se the map in use, please go to https://fjell-vandring.net/ and scroll down (Norwegian hiking site).
Please note! On this site (fjell-vandring.net), I am still using the version 3.0.5 and old leaflets package. I have only updated and modified the file class.map-shortcode.php on a password protected test-site.
Thank you in advance for your help
- Version 3.0.5
The topic ‘Map Tile URL – Issue with base64 encoding’ is closed to new replies.