@opensystemslab/map 0.7.7 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component-lib.es.js +1 -1
- package/dist/component-lib.umd.js +93 -97
- package/dist/{index-bafc90ad.mjs → index-afd5d504.mjs} +9096 -9042
- package/dist/{index.es-52bdfdee.mjs → index.es-11088028.mjs} +1 -1
- package/dist/style.css +1 -1
- package/package.json +19 -19
- package/types/components/my-map/index.d.ts +3 -0
- package/types/components/my-map/os-layers.d.ts +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opensystemslab/map",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.9",
|
4
4
|
"license": "MPL-2.0",
|
5
5
|
"private": false,
|
6
6
|
"repository": {
|
@@ -29,34 +29,34 @@
|
|
29
29
|
"@turf/union": "^6.5.0",
|
30
30
|
"accessible-autocomplete": "^2.0.4",
|
31
31
|
"file-saver": "^2.0.5",
|
32
|
-
"govuk-frontend": "^
|
32
|
+
"govuk-frontend": "^5.0.0",
|
33
33
|
"jspdf": "^2.5.1",
|
34
|
-
"lit": "^
|
34
|
+
"lit": "^3.0.1",
|
35
35
|
"ol": "^7.5.1",
|
36
36
|
"ol-ext": "^4.0.11",
|
37
|
-
"ol-mapbox-style": "^
|
37
|
+
"ol-mapbox-style": "^12.0.0",
|
38
38
|
"postcode": "^5.1.0",
|
39
|
-
"proj4": "^2.9.
|
40
|
-
"rambda": "^8.
|
39
|
+
"proj4": "^2.9.2",
|
40
|
+
"rambda": "^8.6.0"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@glorious/pitsby": "^1.
|
44
|
-
"@testing-library/dom": "^9.3.
|
45
|
-
"@testing-library/user-event": "^14.
|
46
|
-
"@types/file-saver": "^2.0.
|
47
|
-
"@types/node": "
|
43
|
+
"@glorious/pitsby": "^1.37.0",
|
44
|
+
"@testing-library/dom": "^9.3.3",
|
45
|
+
"@testing-library/user-event": "^14.5.1",
|
46
|
+
"@types/file-saver": "^2.0.7",
|
47
|
+
"@types/node": "18.16.1",
|
48
48
|
"@types/ol-ext": "npm:@siedlerchr/types-ol-ext@^3.0.9",
|
49
|
-
"@types/proj4": "^2.5.
|
50
|
-
"@vitest/ui": "^0.34.
|
49
|
+
"@types/proj4": "^2.5.5",
|
50
|
+
"@vitest/ui": "^0.34.7",
|
51
51
|
"happy-dom": "^9.1.9",
|
52
52
|
"husky": "^8.0.3",
|
53
|
-
"lint-staged": "^
|
54
|
-
"prettier": "^3.0
|
53
|
+
"lint-staged": "^14.0.1",
|
54
|
+
"prettier": "^3.1.0",
|
55
55
|
"rollup-plugin-postcss-lit": "^2.1.0",
|
56
|
-
"sass": "^1.
|
57
|
-
"typescript": "^5.
|
58
|
-
"vite": "^4.4.
|
59
|
-
"vitest": "0.34.
|
56
|
+
"sass": "^1.69.5",
|
57
|
+
"typescript": "^5.3.3",
|
58
|
+
"vite": "^4.4.12",
|
59
|
+
"vitest": "0.34.6",
|
60
60
|
"wait-for-expect": "^3.0.2"
|
61
61
|
},
|
62
62
|
"lint-staged": {
|
@@ -21,6 +21,7 @@ export declare class MyMap extends LitElement {
|
|
21
21
|
type: string;
|
22
22
|
geometry: {};
|
23
23
|
};
|
24
|
+
drawGeojsonDataCopyright: string;
|
24
25
|
drawGeojsonDataBuffer: number;
|
25
26
|
drawPointer: DrawPointerEnum;
|
26
27
|
showFeaturesAtPoint: boolean;
|
@@ -40,6 +41,7 @@ export declare class MyMap extends LitElement {
|
|
40
41
|
type: string;
|
41
42
|
features: never[];
|
42
43
|
};
|
44
|
+
geojsonDataCopyright: string;
|
43
45
|
geojsonColor: string;
|
44
46
|
geojsonFill: boolean;
|
45
47
|
geojsonBuffer: number;
|
@@ -56,6 +58,7 @@ export declare class MyMap extends LitElement {
|
|
56
58
|
useScaleBarStyle: boolean;
|
57
59
|
showNorthArrow: boolean;
|
58
60
|
showPrint: boolean;
|
61
|
+
collapseAttributions: boolean;
|
59
62
|
clipGeojsonData: {
|
60
63
|
type: string;
|
61
64
|
geometry: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Tile as TileLayer } from "ol/layer";
|
2
2
|
import VectorTileLayer from "ol/layer/VectorTile";
|
3
3
|
import { OSM } from "ol/source";
|
4
|
-
export declare function makeRasterBaseMap(apiKey: string, proxyEndpoint: string, copyright: string): TileLayer<OSM>;
|
5
|
-
export declare function makeOsVectorTileBaseMap(apiKey: string, proxyEndpoint: string, copyright: string): VectorTileLayer | undefined;
|
4
|
+
export declare function makeRasterBaseMap(apiKey: string, proxyEndpoint: string, copyright: string, collapseAttributions: boolean): TileLayer<OSM>;
|
5
|
+
export declare function makeOsVectorTileBaseMap(apiKey: string, proxyEndpoint: string, copyright: string, collapseAttributions: boolean): VectorTileLayer | undefined;
|