origo
origo copied to clipboard
Sharemap control gives truncated map reference
Description The sharemap control in the 2.6 release gives me an incorrect map reference (to the json config); the name is truncated when the URL includes a dot.
To Reproduce Steps to reproduce the behavior:
- Go to e g https://karta.haninge.se/devmaps/origo-2.6/
- Click on the menu button and then "Dela karta"
- Compare the resulting link's "map" parameter with how the map is initialized.
With linebreaks for readability:
https://karta.haninge.se/devmaps/origo-2.6/
#layers=topowebbkartan_nedtonad/v/1/s/0/o/100,kommunmask/v/1/s/0/o/25
¢er=164000,6555000
&zoom=1.9985301119045455
&legend=expanded
&map=/devmaps/origo-2
Initialisation:
//Init origo
var origo = Origo('/devmaps/origo-2.6/index.json', { baseUrl: "../../origo/" });
Expected behavior
The map parameter should be /devmaps/origo-2.6/index
.
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome
- Version 2.6