@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.
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as Ua, g as Po } from "./index-B9kc5fOE.mjs";
1
+ import { c as Ke, _ as Ua, g as Po } from "./index-0AQlXt5x.mjs";
2
2
  var vt = function(a) {
3
3
  return a && a.Math === Math && a;
4
4
  }, D = (
package/dist/index.html CHANGED
@@ -52,6 +52,7 @@
52
52
  maxZoom="23"
53
53
  drawMode
54
54
  drawMany
55
+ drawType="Point"
55
56
  basemap="MapboxSatellite"
56
57
  showCentreMarker
57
58
  osCopyright="© Crown copyright and database rights 2024 OS (0)100024857"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensystemslab/map",
3
- "version": "1.0.0-alpha.2",
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.1",
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.11.0",
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.5.2",
58
- "vite": "^5.4.2",
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;