@opensystemslab/map 1.0.0-alpha.2 → 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 +55 -55
- package/dist/{index-B9kc5fOE.mjs → index-0AQlXt5x.mjs} +1497 -1484
- package/dist/{index.es-CXEzoRbj.mjs → index.es-BSUWcQGl.mjs} +1 -1
- package/dist/index.html +1 -0
- package/package.json +5 -5
- package/types/components/my-map/drawing.d.ts +1 -1
- package/types/components/my-map/index.d.ts +2 -0
package/dist/index.html
CHANGED
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;
|
@@ -80,12 +80,14 @@ export declare class MyMap extends LitElement {
|
|
80
80
|
applySatelliteStyle: boolean;
|
81
81
|
mapboxAccessToken: string;
|
82
82
|
hideResetControl: boolean;
|
83
|
+
resetViewOnly: boolean;
|
83
84
|
resetControlImage: ResetControlImageEnum;
|
84
85
|
staticMode: boolean;
|
85
86
|
/**
|
86
87
|
* @deprecated - both `area.squareMetres` & `area.hectares` are calculated by default now in applicable `geojsonChange` events
|
87
88
|
*/
|
88
89
|
areaUnit: AreaUnitEnum;
|
90
|
+
hideDrawLabels: boolean;
|
89
91
|
showScale: boolean;
|
90
92
|
useScaleBarStyle: boolean;
|
91
93
|
showNorthArrow: boolean;
|