origo icon indicating copy to clipboard operation
origo copied to clipboard

Sharemap control gives truncated map reference

Open MattiasSp opened this issue 1 year ago • 1 comments

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:

  1. Go to e g https://karta.haninge.se/devmaps/origo-2.6/
  2. Click on the menu button and then "Dela karta"
  3. 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
&center=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

MattiasSp avatar Mar 15 '23 14:03 MattiasSp