Skip to content

Commit

Permalink
Merge pull request #4 from GastonZalba/next
Browse files Browse the repository at this point in the history
Fixed contrain resolution and improved example
  • Loading branch information
GastonZalba authored Oct 13, 2023
2 parents 2245f97 + 882e9f0 commit 5028c22
Show file tree
Hide file tree
Showing 28 changed files with 147 additions and 76 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,8 @@
* Improved README

## v2.1.1
* Fixed overview canvas visible in the final export (bug introduced in 2.1.0)
* Fixed overview canvas visible in the final export (bug introduced in 2.1.0)

## v2.1.2
* Fixed bug with contraint resolution being restored before time (if it was enabled)
* Improved example
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ WMS sources and Icons that use external urls must be setted to `crossOrigin: 'an

## Examples

- [Basic usage](https://raw.githack.com/GastonZalba/ol-pdf-printer/v2.1.1/examples/basic.html)
- [Basic usage](https://raw.githack.com/GastonZalba/ol-pdf-printer/v2.1.2/examples/basic.html)

## Usage

Expand Down Expand Up @@ -86,7 +86,7 @@ var opt_options = {
right: 4,
bottom: 4
},
watermark: {
watermark: {
brcolor: '#000000',
bkcolor: '#ffffff',
txcolortitle: '#d54b4b',
Expand Down Expand Up @@ -161,14 +161,14 @@ See [CHANGELOG](./CHANGELOG.md) for details of changes in each release.
Load `ol-pdf-printer.js` after [OpenLayers](https://www.npmjs.com/package/ol), [jspdf](https://www.npmjs.com/package/jspdf) and PDF.js\[https://www.npmjs.com/package/pdfjs-dist]. Ol Pdf Printer is available as `PdfPrinter`.

```HTML
<script src="https://unpkg.com/ol-pdf-printer@2.1.1"></script>
<script src="https://unpkg.com/ol-pdf-printer@2.1.2"></script>
```

#### CSS

```HTML
<link rel="stylesheet" href="https://unpkg.com/ol-pdf-printer@2.1.1/dist/css/ol-pdf-printer.css" />
<link rel="stylesheet" href="https://unpkg.com/ol-pdf-printer@2.1.1/dist/css/bootstrap.min.css" /> <!-- Bootstrap bundle -->
<link rel="stylesheet" href="https://unpkg.com/ol-pdf-printer@2.1.2/dist/css/ol-pdf-printer.css" />
<link rel="stylesheet" href="https://unpkg.com/ol-pdf-printer@2.1.2/dist/css/bootstrap.min.css" /> <!-- Bootstrap bundle -->
```

### Parcel, Webpack, etc.
Expand Down
2 changes: 1 addition & 1 deletion dist/components/Helpers.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/components/Pdf.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/components/ReframeROI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default class ReframeROI {
private _controlButtons;
constructor(map: Map, i18n: I18n, options: Options);
showOverlay(mode: 'landscape' | 'portrait', callback: (polygon: Extent | Polygon) => void): void;
cancel(): void;
hideOverlay(): void;
private _zoom;
private _rotate;
Expand Down
2 changes: 1 addition & 1 deletion dist/components/ReframeROI.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5028c22

Please sign in to comment.