@opensystemslab/map 0.4.4 → 0.4.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensystemslab/map",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "license": "OGL-UK-3.0",
5
5
  "private": false,
6
6
  "repository": {
@@ -15,6 +15,12 @@
15
15
  "dist",
16
16
  "types"
17
17
  ],
18
+ "scripts": {
19
+ "dev": "vite",
20
+ "build": "tsc && vite build && sed 's/src=\".*\"/src=\"map.es.js\"/' index.html > dist/index.html",
21
+ "prepublishOnly": "rm -rf dist types && npm run build",
22
+ "prepare": "husky install"
23
+ },
18
24
  "dependencies": {
19
25
  "@turf/union": "^6.5.0",
20
26
  "lit": "^2.0.0-rc.2",
@@ -32,9 +38,5 @@
32
38
  },
33
39
  "lint-staged": {
34
40
  "src/**/*.{js,jsx,ts,tsx,json,css,scss,md,html}": "prettier --write"
35
- },
36
- "scripts": {
37
- "dev": "vite",
38
- "build": "tsc && vite build && sed 's/src=\".*\"/src=\"map.es.js\"/' index.html > dist/index.html"
39
41
  }
40
- }
42
+ }
package/types/my-map.d.ts CHANGED
@@ -4,6 +4,7 @@ import { DrawPointerEnum } from "./drawing";
4
4
  import { AreaUnitEnum } from "./utils";
5
5
  export declare class MyMap extends LitElement {
6
6
  static styles: import("lit").CSSResultGroup;
7
+ id: string;
7
8
  latitude: number;
8
9
  longitude: number;
9
10
  zoom: number;
@@ -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;