@opensystemslab/map 1.0.0-alpha.3 → 1.0.0-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component-lib.es.js +1 -1
- package/dist/component-lib.umd.js +20 -20
- package/dist/{index-Dgd3KQAy.mjs → index-0AQlXt5x.mjs} +309 -299
- package/dist/{index.es-DDic13B-.mjs → index.es-BSUWcQGl.mjs} +1 -1
- package/package.json +5 -5
- package/types/components/my-map/drawing.d.ts +1 -1
- package/types/components/my-map/index.d.ts +1 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opensystemslab/map",
|
3
|
-
"version": "1.0.0-alpha.
|
3
|
+
"version": "1.0.0-alpha.4",
|
4
4
|
"license": "MPL-2.0",
|
5
5
|
"private": false,
|
6
6
|
"repository": {
|
@@ -30,13 +30,13 @@
|
|
30
30
|
"accessible-autocomplete": "^2.0.4",
|
31
31
|
"file-saver": "^2.0.5",
|
32
32
|
"govuk-frontend": "^5.6.0",
|
33
|
-
"jspdf": "^2.5.
|
33
|
+
"jspdf": "^2.5.2",
|
34
34
|
"lit": "^3.0.1",
|
35
35
|
"ol": "^9.1.0",
|
36
36
|
"ol-ext": "^4.0.21",
|
37
37
|
"ol-mapbox-style": "^12.3.0",
|
38
38
|
"postcode": "^5.1.0",
|
39
|
-
"proj4": "^2.
|
39
|
+
"proj4": "^2.12.1",
|
40
40
|
"rambda": "^9.2.1"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
@@ -54,8 +54,8 @@
|
|
54
54
|
"prettier": "^3.2.5",
|
55
55
|
"rollup-plugin-postcss-lit": "^2.1.0",
|
56
56
|
"sass": "^1.77.8",
|
57
|
-
"typescript": "^5.
|
58
|
-
"vite": "^5.4.
|
57
|
+
"typescript": "^5.6.2",
|
58
|
+
"vite": "^5.4.6",
|
59
59
|
"vitest": "0.34.6",
|
60
60
|
"wait-for-expect": "^3.0.2"
|
61
61
|
},
|
@@ -5,7 +5,7 @@ import { Vector as VectorSource } from "ol/source";
|
|
5
5
|
export type DrawTypeEnum = Extract<Type, "Polygon" | "Point" | "Circle">;
|
6
6
|
export type DrawPointerEnum = "crosshair" | "dot";
|
7
7
|
export declare const drawingSource: VectorSource<import("ol/Feature").default<import("ol/geom").Geometry>>;
|
8
|
-
export declare function configureDrawingLayer(drawType: DrawTypeEnum, drawColor: string, drawMany: boolean): VectorLayer<VectorSource<import("ol/Feature").default<import("ol/geom").Geometry>>>;
|
8
|
+
export declare function configureDrawingLayer(drawType: DrawTypeEnum, drawColor: string, drawMany: boolean, hideDrawLabels: boolean): VectorLayer<VectorSource<import("ol/Feature").default<import("ol/geom").Geometry>>>;
|
9
9
|
export declare function configureDraw(drawType: DrawTypeEnum, drawPointer: DrawPointerEnum, drawColor: string): Draw;
|
10
10
|
export declare const snap: Snap;
|
11
11
|
export declare function configureModify(drawPointer: DrawPointerEnum, drawColor: string): Modify;
|
@@ -87,6 +87,7 @@ export declare class MyMap extends LitElement {
|
|
87
87
|
* @deprecated - both `area.squareMetres` & `area.hectares` are calculated by default now in applicable `geojsonChange` events
|
88
88
|
*/
|
89
89
|
areaUnit: AreaUnitEnum;
|
90
|
+
hideDrawLabels: boolean;
|
90
91
|
showScale: boolean;
|
91
92
|
useScaleBarStyle: boolean;
|
92
93
|
showNorthArrow: boolean;
|