@opensystemslab/map 0.4.2 → 0.4.6

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.4.2",
3
+ "version": "0.4.6",
4
4
  "license": "OGL-UK-3.0",
5
5
  "private": false,
6
6
  "repository": {
@@ -26,10 +26,10 @@
26
26
  "lit": "^2.0.0-rc.2",
27
27
  "ol": "^6.9.0",
28
28
  "ol-mapbox-style": "^6.4.1",
29
- "rambda": "^6.9.0"
29
+ "rambda": "^7.0.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^16.4.13",
32
+ "@types/node": "^17.0.7",
33
33
  "husky": "^7.0.1",
34
34
  "lint-staged": "^12.0.3",
35
35
  "prettier": "^2.3.2",
package/types/my-map.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { LitElement } from "lit";
2
+ import Map from "ol/Map";
2
3
  import { DrawPointerEnum } from "./drawing";
3
4
  import { AreaUnitEnum } from "./utils";
4
5
  export declare class MyMap extends LitElement {
5
6
  static styles: import("lit").CSSResultGroup;
7
+ id: string;
6
8
  latitude: number;
7
9
  longitude: number;
8
10
  zoom: number;
@@ -36,8 +38,11 @@ export declare class MyMap extends LitElement {
36
38
  areaUnit: AreaUnitEnum;
37
39
  showScale: boolean;
38
40
  useScaleBarStyle: boolean;
41
+ map?: Map;
42
+ constructor();
39
43
  firstUpdated(): void;
40
44
  render(): import("lit").TemplateResult<1>;
45
+ disconnectedCallback(): void;
41
46
  /**
42
47
  * dispatches an event for clients to subscribe to
43
48
  * @param eventName
@@ -7,5 +7,6 @@ export declare function makeFeatureLayer(color: string, featureFill: boolean): V
7
7
  * features containing the coordinates of the provided point
8
8
  * @param coord - xy coordinate
9
9
  * @param apiKey - Ordnance Survey Features API key, sign up here: https://osdatahub.os.uk/plans
10
+ * @param supportClickFeatures - whether the featureSource should support `clickFeatures` mode or be cleared upfront
10
11
  */
11
- export declare function getFeaturesAtPoint(coord: Array<number>, apiKey: any): void;
12
+ export declare function getFeaturesAtPoint(coord: Array<number>, apiKey: any, supportClickFeatures: boolean): void;