Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Print plugin] Layers with visibility scale limits do not print if "useFixedScales" is true #8998

Closed
1 task done
catmorales opened this issue Mar 3, 2023 · 2 comments · Fixed by #9138, #9181 or #9178
Closed
1 task done

Comments

@catmorales
Copy link

catmorales commented Mar 3, 2023

Description

Layers with visibility scale limits do not print if "useFixedScales" is true
Version :
mapstore2georchestra : 2022.02.00-geOrchestra(f3ce6b9e)
mapstore2 : 2022.02.xx(15c07932)
Print plugin configuration:

{
  "cfg": {
    "useFixedScales": true,
    "mapPreviewOptions": {
      "enableScalebox": true
    },
    "outputFormatOptions": {
      "allowedFormats": [
        {
          "name": "PDF",
          "value": "pdf"
        },
        {
          "name": "PNG",
          "value": "png"
        }
      ]
    },
    "overlayLayersOptions": {
      "enabled": true
    },
    "overrideOptions": {
      "geodetic": true
    }
  },
  "override": {}
}

config.yaml configuration:

#==========================================================================
# Formats
# added for migration to 2022.02.00 version
#==========================================================================
formats:
  - '*'

#===========================================================================
# allowed DPIs
#===========================================================================
dpis:
  - 96
  - 150
  - 300

#===========================================================================
# the allowed scales
# catherine: ne pas mettre plus de 23 échelles
#===========================================================================
scales:
  - 100
  - 250
  - 500
  - 1000
  - 2000
  - 4000
  - 5000
  - 8000
  - 10000
  - 12000
  - 16000
  - 25000
  - 30000
  - 40000
  - 50000
  - 100000
  - 250000
  - 500000
  - 1000000
  - 2500000
  - 5000000
  ...

How to reproduce

Expected Result
The layer must be printed when printing at a valid scale

Current Result
The layer "Arbres d'ornement" don't print (not in the preview neither in the pdf)

image

  • 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

This need to be backported also to 2022.02.xx so that it will be possible to release 2022.02.02-geOrchestra including this

@catmorales catmorales added the bug label Mar 3, 2023
@tdipisa
Copy link
Member

tdipisa commented Mar 3, 2023

@catmorales there is a small bug to fix in how scales are handled. I've already provided feedback about this in georchestra/mapstore2-georchestra#585 that I think is connected.

@tdipisa tdipisa added the Print label Mar 3, 2023
@tdipisa tdipisa added this to the 2023.01.02 milestone Apr 19, 2023
dsuren1 added a commit to dsuren1/MapStore2 that referenced this issue May 2, 2023
allyoucanmap pushed a commit that referenced this issue May 3, 2023
@tdipisa tdipisa closed this as completed May 3, 2023
@ElenaGallo ElenaGallo self-assigned this May 10, 2023
dsuren1 added a commit to dsuren1/MapStore2 that referenced this issue May 17, 2023
tdipisa pushed a commit that referenced this issue May 17, 2023
dsuren1 added a commit to dsuren1/MapStore2 that referenced this issue May 17, 2023
…t print if useFixedScales configured (geosolutions-it#9138)

(cherry picked from commit 02eb166)
@tdipisa tdipisa removed the Accepted label May 18, 2023
@tdipisa
Copy link
Member

tdipisa commented May 18, 2023

@ElenaGallo this still need to be tested on QA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment