MapStore2 icon indicating copy to clipboard operation
MapStore2 copied to clipboard

Graticule layers improvements, for openlayers and printing

Open mbarto opened this issue 4 years ago • 4 comments

Description

The current implementation of the graticule layer has some limitations:

  • only supports lat - lon grids
  • does not support labels
  • cannot be printed

We would like to:

  • support metric grids, at least for mercator (EPSG:3857) and UTM projections (we won't implement full UTM grids (https://www.dmap.co.uk/utmworld.htm), for simplicity we will assume a regular grid, without the irregular zones (e.g. 31, 32, etc.)
  • add optional labels for x and y lines, with configurable styling
  • add printing support

The openlayers Graticule layer only supports lat - lon grids, so we will need to either:

  • extend / override it with a MapStore implementation
  • use another library (e.g. https://github.com/Viglino/ol-ext)

Connected to https://github.com/geosolutions-it/mapfish-print/issues/35

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

mbarto avatar Jan 25 '22 13:01 mbarto

@tdipisa this is not included by default as a panel in default print. Is a separate plug-in, available but not included in the build. Should we include? I don't know if makes sense to make the print plugin to complex for the user as it's default implementation for testing.

offtherailz avatar Mar 25 '22 16:03 offtherailz

Let's enable it @offtherailz for testing in master and test scenario definition (fyi @ElenaGallo).

tdipisa avatar Mar 25 '22 16:03 tdipisa

We should include it as a panel, instead of plugin, to avoid to reconfigure all the projects depending. This requires a small work on client. Same for the other task

offtherailz avatar Mar 25 '22 16:03 offtherailz

@tdipisa I can not test the PrintGraticule plugin on MS because it is not present in the plugins.js file and the plugin is not present on the Plugin doc.

ElenaGallo avatar Aug 08 '22 15:08 ElenaGallo

Missing documentation and tests will be done with #8596

ElenaGallo avatar Sep 21 '22 09:09 ElenaGallo