16.0.2 • Published 10 months ago

@terrestris/mapfish-print-manager v16.0.2

Weekly downloads
206
License
MIT
Repository
github
Last release
10 months ago

Build Status

Mapfish Print Manager

An interface manager to easily communicate with the MapFish Print servlet via an OpenLayers based webapplication.

Installation

If you're using OpenLayers in version 7 just run:

npm i --save @terrestris/mapfish-print-manager

For version 6 one might use the manager in version 6:

npm i --save @terrestris/mapfish-print-manager@6

For version 4 one might use the manager in version 1:

npm i --save @terrestris/mapfish-print-manager@1

Usage

// Import the manager. If you're using MapFish in version 2, you might want to
// import the `MapFishPrintV2Manager` instead.
import { MapFishPrintV3Manager } from '@terrestris/mapfish-print-manager';

// Construct the manager with a remote print servlet and an `ol.Map` instance
// (required).
const printManager = new MapFishPrintV3Manager({
  url: 'https://10.10.10.10/print/',
  map: olMap
});

// Initialize the manager. It will return a resolved `Promise` as soon as the
// capabilities are loaded from the given ressource, e.g. https://10.10.10.10/print/info.json.
printManager.init()
  .then(() => {
    // Prepare the print layout via the extent feature on the map and/or the
    // usage of the setters like `printManager.setLayout()` and call
    // `printManager.print()` to create the print document.
  });

Examples

Do you want to see the Mapfish Print Manager in action? There are two examples showing how it works.

Start a locale instance for both MapFish Print version 2 and 3 by executing:

cd docker
docker-compose -f docker-compose.yml up --build

The print servlets are available under http://localhost:18083 (v2) and http://localhost:18082/print (v3) now.

Install all needed dependencies and start the development server with

npm i
npm start

You can now try out the example applications:

16.0.2

10 months ago

6.6.0

11 months ago

16.0.1

1 year ago

16.0.0

1 year ago

5.2.2

1 year ago

15.0.0

1 year ago

14.0.0

1 year ago

13.0.0

1 year ago

13.0.1

1 year ago

12.1.1

1 year ago

12.1.0

2 years ago

12.0.0

2 years ago

11.0.3

2 years ago

11.0.2

2 years ago

11.0.0

2 years ago

11.0.1

2 years ago

5.2.1

2 years ago

10.0.0

2 years ago

10.1.0

2 years ago

9.0.1

3 years ago

9.0.0

3 years ago

1.0.4-ol5

3 years ago

8.1.0

3 years ago

8.0.1

3 years ago

8.0.0

3 years ago

8.0.2

3 years ago

7.0.0

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

1.0.3-ol5

3 years ago

1.0.2-ol5

3 years ago

6.5.0

3 years ago

1.0.1-ol5

3 years ago

6.5.1

3 years ago

2.0.0-3

4 years ago

2.0.0-2

4 years ago

2.0.0-1

4 years ago

6.4.3

4 years ago

6.4.2

4 years ago

6.4.1

4 years ago

6.4.0

5 years ago

6.3.4

5 years ago

6.3.5

5 years ago

6.3.2

5 years ago

6.3.3

5 years ago

6.3.1

5 years ago

6.3.0

5 years ago

6.2.0

5 years ago

6.1.1

6 years ago

5.2.0

6 years ago

6.1.0

6 years ago

6.0.0

6 years ago

5.1.0

6 years ago

5.0.0

6 years ago

4.0.0

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago