@opensystemslab/map 0.5.8 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensystemslab/map",
3
- "version": "0.5.8",
3
+ "version": "0.6.0",
4
4
  "license": "OGL-UK-3.0",
5
5
  "private": false,
6
6
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "@testing-library/user-event": "^14.4.3",
43
43
  "@types/node": "^18.6.3",
44
44
  "@types/proj4": "^2.5.2",
45
- "@vitest/ui": "^0.22.1",
45
+ "@vitest/ui": "^0.23.2",
46
46
  "happy-dom": "^6.0.4",
47
47
  "husky": "^8.0.1",
48
48
  "lint-staged": "^13.0.3",
@@ -51,7 +51,8 @@
51
51
  "sass": "^1.44.0",
52
52
  "typescript": "^4.3.5",
53
53
  "vite": "^3.0.4",
54
- "vitest": "0.20.3"
54
+ "vitest": "0.20.3",
55
+ "wait-for-expect": "^3.0.2"
55
56
  },
56
57
  "engines": {
57
58
  "node": "^16",
@@ -0,0 +1,4 @@
1
+ import "ol/ol.css";
2
+ import { Control, ScaleLine } from "ol/control";
3
+ export declare function scaleControl(useScaleBarStyle: boolean): ScaleLine;
4
+ export declare function northArrowControl(): Control;
@@ -27,6 +27,7 @@ export declare class MyMap extends LitElement {
27
27
  featureBorderNone: boolean;
28
28
  featureBuffer: number;
29
29
  showMarker: boolean;
30
+ markerImage: MarkerImageEnum;
30
31
  markerLatitude: number;
31
32
  markerLongitude: number;
32
33
  markerColor: string;
@@ -46,7 +47,7 @@ export declare class MyMap extends LitElement {
46
47
  areaUnit: AreaUnitEnum;
47
48
  showScale: boolean;
48
49
  useScaleBarStyle: boolean;
49
- markerImage: MarkerImageEnum;
50
+ showNorthArrow: boolean;
50
51
  map?: Map;
51
52
  constructor();
52
53
  firstUpdated(): void;
@@ -60,6 +61,9 @@ export declare class MyMap extends LitElement {
60
61
  private dispatch;
61
62
  }
62
63
  declare global {
64
+ interface Window {
65
+ olMap: Map | undefined;
66
+ }
63
67
  interface HTMLElementTagNameMap {
64
68
  "my-map": MyMap;
65
69
  }
@@ -1,3 +0,0 @@
1
- import "ol/ol.css";
2
- import { ScaleLine } from "ol/control";
3
- export declare function scaleControl(useScaleBarStyle: boolean): ScaleLine;