Configuration of additional CRS for the print dialog

20 views
Skip to first unread message
Assigned to matteo.v...@geosolutionsgroup.com by lorenzo...@geosolutionsgroup.com

Stefan Overkamp

unread,
Oct 7, 2022, 5:26:35 AM10/7/22
to 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

unread,
Oct 11, 2022, 10:59:52 AM10/11/22
to 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

unread,
Oct 13, 2022, 5:32:00 AM10/13/22
to 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
Reply all
Reply to author
Forward
0 new messages