Skip to content

Commit

Permalink
Merge pull request #39 from geoblocks/support-ol-10
Browse files Browse the repository at this point in the history
Support OpenLayers v10
  • Loading branch information
ismailsunni authored Aug 15, 2024
2 parents e0dd18a + 3c8623e commit 89c0003
Show file tree
Hide file tree
Showing 7 changed files with 435 additions and 582 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.yml

This file was deleted.

14 changes: 12 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# @geoblocks/geoblocks changes
# @geoblocks/mapfisprint changes

## 0.2.16

- Make it compatible with OpenLayers 10.
- Update @geoblocks/print.
- Add replacer to requestReport to support custom replacer for print specification manipulation

## 0.2.15

Expand All @@ -9,7 +15,6 @@ Breaking changes:

- Pass feature object to allow informed customization.


## 0.2.14

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

## 0.2.4

- Add a cancel function.
- Move createReport to utils.
- Add **raw** encode support for WMS and Tile WMS layers.

## 0.2.3

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

## v0.2.2

- Add optional MVTEncoder

## v0.2.0

- General refactor (rename classes / types)

## v0.1.2

- Add inline source maps.
- Publish a transpiled ES6 library + types.
53 changes: 53 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import prettier from "eslint-plugin-prettier";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["node_modules/"],
}, ...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
prettier,
},

languageOptions: {
globals: {
...globals.browser,
},

parser: tsParser,
ecmaVersion: 2020,
sourceType: "module",
},

rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",

"@typescript-eslint/no-unused-vars": ["error", {
vars: "all",
args: "none",
}],

"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-ts-comment": "off",
},
}];
Loading

0 comments on commit 89c0003

Please sign in to comment.