@opensystemslab/map 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.html +1 -1
- package/dist/map.es.js +5 -5
- package/dist/map.umd.js +5 -5
- package/package.json +8 -6
- package/types/my-map.d.ts +1 -0
- package/types/os-features.d.ts +2 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opensystemslab/map",
|
3
|
-
"version": "0.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
package/types/os-features.d.ts
CHANGED
@@ -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;
|