This bundle provides two tools to take simple or configured screenshots of the map.
https://demos.conterra.de/mapapps/resources/apps/downloads_screenshot/index.html
Requirement: map.apps 4.9.0 or later
Load the bundle "dn_screenshot" and add the "screenshotTool" or "screenshotToggleTool" to your app. The "screenshotTool" simply provides a button for taking screenshots. The "screenshotToggleTool" opens a User Interface to configure the Screenshot beforehand. E.g. you can adjust the extent, format and quality of the shot.
Before you can run the project you have to define the mapapps.remote.base property in the pom.xml-file:
<mapapps.remote.base>http://%YOURSERVER%/ct-mapapps-webapp-%VERSION%</mapapps.remote.base>
-
Goal parameters
mvn install -Dmapapps.remote.base=http://%YOURSERVER%/ct-mapapps-webapp-%VERSION%
-
Build properties Change the mapapps.remote.base in the build.properties file and run:
mvn install -Denv=dev -Dlocal.configfile=%ABSOLUTEPATHTOPROJECTROOT%/build.properties