Configuration of additional CRS for the print dialog

45 ogledov
Preskoči na prvo neprebrano sporočilo
Osebi matteo.v...@geosolutionsgroup.com je dodelila oseba lorenzo...@geosolutionsgroup.com

Stefan Overkamp

neprebran,
7. okt. 2022, 05:26:357. 10. 22
do mapstore-users
Hi,

the latest MapStore2 includes the "Support to select the desired
projection for printed maps".
Can anyone tell me, where to configure an additional CRS for the print
dialog?

In localConfig I have
    "projectionDefs": [{
        "code": "EPSG:25832",
        "def": "+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0
+units=m +no_defs",
        "extent": [-46133.17, 5048875.26857567, 1206211.10142433,
6301219.54],
        "worldExtent": [0.105946742405689, 45.2375427360256,
20.4488912945257, 56.5360493905526]
    }],
and more configuration in MousePosition and CRSSelector.

Thanks

Stefan

--
Dipl. Ing. Stefan Overkamp
over...@posteo.de
https://mapstore.geodaten-velbert.de

Matteo Velludini

neprebran,
11. okt. 2022, 10:59:5211. 10. 22
do mapstore-users
Hi,

I can suggest you to check the print options available here, in particular projectionOptions.projections

you have to:
  • edit the localconfig.json file
  • find "Print" object in plugins.desktop array 
  • add this 
{
  "name": "Print",
  "cfg": {
      "projectionOptions": {
        "projections": [{"name": "25832", "value": "EPSG:25832"}, {"name": "EPSG:3857", "value": "EPSG:3857"}, {"name": "EPSG:4326", "value": "EPSG:4326"}]
      }

  }
}

Stefan Overkamp

neprebran,
13. okt. 2022, 05:32:0013. 10. 22
do mapstor...@googlegroups.com
Many, many thanks.
This solution works great.

I should have looked into https://mapstore.geosolutionsgroup.com/mapstore/docs/api/plugins first.

Stefan
--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/93baf85f-2acd-49e2-b92f-e539ef42fd3dn%40googlegroups.com.


-- 
Dipl. Ing. Stefan Overkamp
Laakmannsbusch 44, 42555 Velbert 
tel.: 0177 / 79 76 159
over...@posteo.de
https://mapstore.geodaten-velbert.de
Odgovori vsem
Odgovori avtorju
Posreduj
0 novih sporočil