ol 10.10.1-dev.1791137381663 → 10.10.1-dev.1791140347424
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/format/WKT.d.ts +8 -0
- package/format/WKT.d.ts.map +1 -1
- package/format/WKT.js +7 -0
- package/package.json +1 -1
- package/util.js +1 -1
package/format/WKT.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ export type Options = {
|
|
|
5
5
|
* multiple features on reading.
|
|
6
6
|
*/
|
|
7
7
|
splitCollection?: boolean | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Default data projection.
|
|
10
|
+
*/
|
|
11
|
+
dataProjection?: import("../proj.js").ProjectionLike;
|
|
12
|
+
/**
|
|
13
|
+
* Default feature projection.
|
|
14
|
+
*/
|
|
15
|
+
featureProjection?: import("../proj.js").ProjectionLike;
|
|
8
16
|
};
|
|
9
17
|
export type Token = {
|
|
10
18
|
/**
|
package/format/WKT.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WKT.d.ts","sourceRoot":"","sources":["WKT.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WKT.d.ts","sourceRoot":"","sources":["WKT.js"],"names":[],"mappings":";;;;;;;;;;qBAgCc,OAAO,YAAY,EAAE,cAAc;;;;wBACnC,OAAO,YAAY,EAAE,cAAc;;;;;;UAKnC,MAAM;;;;;;;;cAEN,MAAM;;AAijBpB;;;;;;GAMG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAkBjB;IAXC;;;;OAIG;IACH,yBACyE;IAO3E;;;;;;OAMG;IACH,eAIC;IAED;;;;;;OAMG;IACH,6CALW,MAAM,YACN,OAAO,cAAc,EAAE,WAAW,GACjC,OAAO,eAAe,EAAE,OAAO,CAQ1C;CAuFF;wBAztBuB,kBAAkB"}
|
package/format/WKT.js
CHANGED
|
@@ -9,6 +9,7 @@ import MultiPoint from '../geom/MultiPoint.js';
|
|
|
9
9
|
import MultiPolygon from '../geom/MultiPolygon.js';
|
|
10
10
|
import Point from '../geom/Point.js';
|
|
11
11
|
import Polygon from '../geom/Polygon.js';
|
|
12
|
+
import {get as getProjection} from '../proj.js';
|
|
12
13
|
import {transformGeometryWithOptions} from './Feature.js';
|
|
13
14
|
import TextFeature from './TextFeature.js';
|
|
14
15
|
|
|
@@ -29,6 +30,8 @@ const GeometryConstructor = {
|
|
|
29
30
|
* @typedef {Object} Options
|
|
30
31
|
* @property {boolean} [splitCollection=false] Whether to split GeometryCollections into
|
|
31
32
|
* multiple features on reading.
|
|
33
|
+
* @property {import("../proj.js").ProjectionLike} [dataProjection] Default data projection.
|
|
34
|
+
* @property {import("../proj.js").ProjectionLike} [featureProjection] Default feature projection.
|
|
32
35
|
*/
|
|
33
36
|
|
|
34
37
|
/**
|
|
@@ -619,6 +622,10 @@ class WKT extends TextFeature {
|
|
|
619
622
|
*/
|
|
620
623
|
this.splitCollection_ =
|
|
621
624
|
options.splitCollection !== undefined ? options.splitCollection : false;
|
|
625
|
+
|
|
626
|
+
this.dataProjection = getProjection(options.dataProjection) ?? undefined;
|
|
627
|
+
this.defaultFeatureProjection =
|
|
628
|
+
getProjection(options.featureProjection) ?? undefined;
|
|
622
629
|
}
|
|
623
630
|
|
|
624
631
|
/**
|
package/package.json
CHANGED
package/util.js
CHANGED
|
@@ -36,7 +36,7 @@ export function getUid(obj) {
|
|
|
36
36
|
* OpenLayers version.
|
|
37
37
|
* @type {string}
|
|
38
38
|
*/
|
|
39
|
-
export const VERSION = '10.10.1-dev.
|
|
39
|
+
export const VERSION = '10.10.1-dev.1791140347424';
|
|
40
40
|
|
|
41
41
|
/***
|
|
42
42
|
* Determine whether a value is thenable, i.e. it has `then` and `catch` methods.
|