MapStore2 icon indicating copy to clipboard operation
MapStore2 copied to clipboard

allow to move the map in the print preview

Open landryb opened this issue 2 years ago • 2 comments

Description

Right now in the print preview widget, a static map is displayed, with a scale selectbox. That map changes if the user changes the main map, or changes the scale.

So, to recenter on a feature more precisely, the user needs to move the main map, trying to move the preview map does nothing. It's an error prone process, while it would be much more straightforward to directly change the extent by panning in the preview map.

I've looked at the print plugin doc on https://mapstore.geosolutionsgroup.com/mapstore/docs/api/plugins#plugins.Print and it doesnt seem to be a feature hidden behind a flag. There's enableRefresh but that's to allow the preview map to be refreshed if the main map moves.

What kind of improvement you want to add? (check one with "x", remove the others)

  • [x] Minor changes to existing features
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Other... Please describe:

Other useful information

landryb avatar Aug 19 '22 12:08 landryb

@MaelREBOUX @catmorales feedback welcome on this.

landryb avatar Aug 19 '22 12:08 landryb

@landryb I agree with this enhancement. Many users find the current operation inconvenient.

catmorales avatar Aug 19 '22 16:08 catmorales