Skip to content

Fix YAML config issues for printing: North arrow URL format and A2 north arrow positioning #11328

@mahmoudadel54

Description

@mahmoudadel54

Description

There are 2 configuration issues found in MapStore's YAML printing configuration affecting A2 paper size layouts and north arrow display.
1- URL of north arrow for A2 print: the url is not correct in some cases like: 'file:/${configDir}/Arrow_North_CFCF.svg' with one slash '/' instead of '//' after file --> it should be always 'file://${configDir}/Arrow_North_CFCF.svg', this issue causes hiding the north arrow in some cases like:

A2 - portrait

Image

2- in A2, if the url issue above fixed, the appearance of north arrow will need to be corrected, there are some wrong values for absoluteX/Y for implemented here refer in this PR: https://github.com/geosolutions-it/MapStore2/pull/10007/files
for example:
A2-portrait:

Image

It should be

Image

How to reproduce

Expected Result

The north arrow should always shown and has a proper location on print page

Current Result

For A2, the north arrow is hidden.

  • 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

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions