Skip to content

Commit 89c0003

Browse files
authored
Merge pull request #39 from geoblocks/support-ol-10
Support OpenLayers v10
2 parents e0dd18a + 3c8623e commit 89c0003

File tree

7 files changed

+435
-582
lines changed

7 files changed

+435
-582
lines changed

.eslintrc.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

CHANGES.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# @geoblocks/geoblocks changes
1+
# @geoblocks/mapfisprint changes
2+
3+
## 0.2.16
4+
5+
- Make it compatible with OpenLayers 10.
6+
- Update @geoblocks/print.
7+
- Add replacer to requestReport to support custom replacer for print specification manipulation
28

39
## 0.2.15
410

@@ -9,7 +15,6 @@ Breaking changes:
915

1016
- Pass feature object to allow informed customization.
1117

12-
1318
## 0.2.14
1419

1520
- Fix (invert) text Y axis offset.
@@ -33,11 +38,13 @@ Breaking changes:
3338
- Fix not printed text on lines and polygons.
3439

3540
## 0.2.4
41+
3642
- Add a cancel function.
3743
- Move createReport to utils.
3844
- Add **raw** encode support for WMS and Tile WMS layers.
3945

4046
## 0.2.3
47+
4148
- Add utility functions.
4249
- In `BaseCustomizer`, the printExtent can be now set and get/set are dedicated methods.
4350
- `pdfA` (allow transparency) is now a spec.map optional param.
@@ -46,11 +53,14 @@ Breaking changes:
4653
- Add a timeout and manage errors on the `getDownloadUrl` utils function.
4754

4855
## v0.2.2
56+
4957
- Add optional MVTEncoder
5058

5159
## v0.2.0
60+
5261
- General refactor (rename classes / types)
5362

5463
## v0.1.2
64+
5565
- Add inline source maps.
5666
- Publish a transpiled ES6 library + types.

eslint.config.mjs

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import prettier from "eslint-plugin-prettier";
3+
import globals from "globals";
4+
import tsParser from "@typescript-eslint/parser";
5+
import path from "node:path";
6+
import { fileURLToPath } from "node:url";
7+
import js from "@eslint/js";
8+
import { FlatCompat } from "@eslint/eslintrc";
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all
16+
});
17+
18+
export default [{
19+
ignores: ["node_modules/"],
20+
}, ...compat.extends(
21+
"eslint:recommended",
22+
"plugin:@typescript-eslint/eslint-recommended",
23+
"plugin:@typescript-eslint/recommended",
24+
"plugin:prettier/recommended",
25+
), {
26+
plugins: {
27+
"@typescript-eslint": typescriptEslint,
28+
prettier,
29+
},
30+
31+
languageOptions: {
32+
globals: {
33+
...globals.browser,
34+
},
35+
36+
parser: tsParser,
37+
ecmaVersion: 2020,
38+
sourceType: "module",
39+
},
40+
41+
rules: {
42+
"@typescript-eslint/no-explicit-any": "off",
43+
"@typescript-eslint/no-empty-function": "off",
44+
45+
"@typescript-eslint/no-unused-vars": ["error", {
46+
vars: "all",
47+
args: "none",
48+
}],
49+
50+
"@typescript-eslint/no-non-null-assertion": "off",
51+
"@typescript-eslint/ban-ts-comment": "off",
52+
},
53+
}];

0 commit comments

Comments
 (0)