Skip to content

ScaleBox plugin - Custom scales are not reported when opening the map #12207

@ale-cristofori

Description

@ale-cristofori

Description

If there are custom scales defined in the new.json file when opening a new map the scales are not reported on the ScaleBox plugin.
To make the plugin show the user defined scales, the user has to open the print plugin dialog window. At tha point the scales in the scalebox change and become those user's defined. This is not correct, user defined scales should always be coherent.
In fact when refreshing the map the scales become 'broken' again.

How to reproduce

  • In new.json define a list of custom scales, in config.yaml fo the same, defining the same scales, so that the map has the same scales for both the visualization and the prints.
  • Create a new map from the home page.

Expected Result
The scalebox plugin should contain the list of the custom scales defined by the user in the new.json file.

Current Result
The scalebox plugin does not contain the list of the custom scales defined by the user in the new.json file but the default ones. To make the scalebox show the custom scales the user has to open the print plugin dialog window. More over if the user saves the map the custom scales are not recorded and the newly saved map when opened represents the same buggy behaviour.

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

recording_1.mp4

Metadata

Metadata

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions