@opensystemslab/map 1.0.0-alpha.15 → 1.0.0-alpha.16

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.
@@ -1,4 +1,4 @@
1
- import { c as Va, _ as La, g as tl } from "./index-DucnWHoV.mjs";
1
+ import { c as Va, _ as La, g as tl } from "./index-BMqaB1qI.mjs";
2
2
  var hn = {}, fn = {}, cr, cn;
3
3
  function Q() {
4
4
  if (cn) return cr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensystemslab/map",
3
- "version": "1.0.0-alpha.15",
3
+ "version": "1.0.0-alpha.16",
4
4
  "license": "MPL-2.0",
5
5
  "private": false,
6
6
  "repository": {
@@ -31,20 +31,20 @@
31
31
  "@types/geojson": "^7946.0.16",
32
32
  "accessible-autocomplete": "^3.0.1",
33
33
  "file-saver": "^2.0.5",
34
- "govuk-frontend": "^6.3.0",
34
+ "govuk-frontend": "^6.5.0",
35
35
  "jspdf": "^4.2.1",
36
36
  "lit": "^3.3.2",
37
37
  "ol": "^10.9.0",
38
38
  "ol-ext": "^4.0.38",
39
- "ol-mapbox-style": "^13.4.1",
39
+ "ol-mapbox-style": "^13.4.3",
40
40
  "postcode": "^5.1.0",
41
41
  "proj4": "^2.21.0",
42
- "rambda": "^11.2.0"
42
+ "rambda": "^11.3.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@storybook/addon-docs": "^10.4.5",
46
46
  "@storybook/web-components-vite": "^10.4.5",
47
- "@testing-library/dom": "^10.4.1",
47
+ "@testing-library/dom": "^10.4.2",
48
48
  "@testing-library/user-event": "^14.6.1",
49
49
  "@types/file-saver": "^2.0.7",
50
50
  "@types/node": "~25.9.5",
@@ -53,9 +53,9 @@
53
53
  "happy-dom": "^20.11.1",
54
54
  "husky": "^8.0.3",
55
55
  "lint-staged": "^15.5.2",
56
- "prettier": "^3.9.6",
56
+ "prettier": "^3.9.9",
57
57
  "rollup-plugin-postcss-lit": "^2.2.0",
58
- "sass": "^1.99.0",
58
+ "sass": "^1.105.0",
59
59
  "storybook": "^10.5.5",
60
60
  "typescript": "^5.8.3",
61
61
  "vite": "^6.4.3",
@@ -1,12 +1,29 @@
1
1
  import Map from "ol/Map";
2
- import { Control, ScaleLine } from "ol/control";
2
+ import { Control, ScaleLine, Zoom } from "ol/control";
3
3
  import "ol/ol.css";
4
4
  import "ol-ext/dist/ol-ext.css";
5
5
  import PrintDialog from "ol-ext/control/PrintDialog";
6
6
  import { Options } from "ol-ext/control/PrintDialog";
7
7
  export declare function scaleControl(useScaleBarStyle: boolean): ScaleLine;
8
8
  export declare function northArrowControl(): Control;
9
- export declare function resetControl(listener: any, icon: string): Control;
9
+ /**
10
+ * Icons for the default OL attribution control's expand & collapse button
11
+ */
12
+ export declare function attributionLabels(): {
13
+ label: HTMLImageElement;
14
+ collapseLabel: HTMLImageElement;
15
+ };
16
+ /**
17
+ * Default OL zoom control with a 'reset view' button between zoom in & out
18
+ */
19
+ export declare class ZoomWithResetControl extends Zoom {
20
+ constructor(listener: () => void, showReset?: boolean);
21
+ }
22
+ /**
23
+ * Standalone 'reset view' control, used when the zoom control is disabled
24
+ */
25
+ export declare function resetControl(listener: () => void): Control;
26
+ export declare function deleteControl(listener: () => void): Control;
10
27
  export interface PrintControlOptions extends Options {
11
28
  map: Map;
12
29
  }
@@ -14,4 +14,5 @@ export declare function configureDrawingLayer(drawType: DrawTypeEnum, drawColor:
14
14
  }>>;
15
15
  export declare function configureDraw(drawType: DrawTypeEnum, drawPointer: DrawPointerEnum, drawColor: string): Draw;
16
16
  export declare const snap: Snap;
17
+ export declare const modifyPixelTolerance = 10;
17
18
  export declare function configureModify(drawPointer: DrawPointerEnum, drawColor: string): Modify;
@@ -80,8 +80,15 @@ export declare class MyMap extends LitElement {
80
80
  applySatelliteStyle: boolean;
81
81
  mapboxAccessToken: string;
82
82
  hideResetControl: boolean;
83
+ /**
84
+ * @deprecated - the reset control now always resets the view only, use `hideDeleteControl` to control deleting drawings
85
+ */
83
86
  resetViewOnly: boolean;
87
+ /**
88
+ * @deprecated - the reset control always uses the "filter center focus" icon now, and deleting drawings is handled by the separate delete control
89
+ */
84
90
  resetControlImage: ResetControlImageEnum;
91
+ hideDeleteControl: boolean;
85
92
  staticMode: boolean;
86
93
  /**
87
94
  * @deprecated - both `area.squareMetres` & `area.hectares` are calculated by default now in applicable `geojsonChange` events