Skip to content

conterra/mapapps-screenshot

Repository files navigation

Screenshot Bundle

This bundle provides two tools to take simple or configured screenshots of the map.

Build status

devnet-bundle-snapshot

Sample App

https://demos.conterra.de/mapapps/resources/apps/downloads_screenshot/index.html

Installation Guide

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.

dn_screenshot Documentation

Development Guide

Define the mapapps remote base

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>

Other methods to to define the mapapps.remote.base property.

  1. Goal parameters mvn install -Dmapapps.remote.base=http://%YOURSERVER%/ct-mapapps-webapp-%VERSION%

  2. Build properties Change the mapapps.remote.base in the build.properties file and run: mvn install -Denv=dev -Dlocal.configfile=%ABSOLUTEPATHTOPROJECTROOT%/build.properties