Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

This bundle saves/loads the properties of the current map extent from/in the local storage of the browser

License

Notifications You must be signed in to change notification settings

conterra/mapapps-map-extent-storage

Repository files navigation

⚠️ This bundle is no longer in active development.

Map extent storage

The Map extent storage bundle saves the current map extent of your app and loads the last one when the app is opened again. The map extent is saved and loaded for each app separately and is stored in the local storage of your browser. The saving happens automatically each time you change the map extent. Screenshot: Map extent storage bundle

To view all map extents in your local storage use the map extent storage manager bundle. This bundle contains a widget that displays all map extents that are currently saved in the local storage of your browser. Here you can also delete unwanted extents. It works independently of the "Save and load map extents bundle".

Screenshot: Map extent storage manager bundle

Sample App

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

Installation Guide

Requirement: map.apps 4.9.0 or newer

dn_mapextentstorage Documentation

dn_mapextentstoragemanager 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