@opensystemslab/map 0.7.8 → 0.8.0
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 +62 -62
- package/dist/{index-bc945cdc.mjs → index-91fc83f5.mjs} +6641 -6622
- package/dist/{index.es-d4441b99.mjs → index.es-9acdc0ae.mjs} +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
- package/types/components/my-map/index.d.ts +5 -1
- 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.
|
3
|
+
"version": "0.8.0",
|
4
4
|
"license": "MPL-2.0",
|
5
5
|
"private": false,
|
6
6
|
"repository": {
|
@@ -29,7 +29,7 @@
|
|
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
34
|
"lit": "^3.0.1",
|
35
35
|
"ol": "^7.5.1",
|
@@ -40,21 +40,21 @@
|
|
40
40
|
"rambda": "^8.6.0"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@glorious/pitsby": "^1.
|
44
|
-
"@testing-library/dom": "^9.3.
|
43
|
+
"@glorious/pitsby": "^1.37.0",
|
44
|
+
"@testing-library/dom": "^9.3.3",
|
45
45
|
"@testing-library/user-event": "^14.5.1",
|
46
46
|
"@types/file-saver": "^2.0.7",
|
47
47
|
"@types/node": "18.16.1",
|
48
48
|
"@types/ol-ext": "npm:@siedlerchr/types-ol-ext@^3.0.9",
|
49
49
|
"@types/proj4": "^2.5.5",
|
50
|
-
"@vitest/ui": "^0.34.
|
50
|
+
"@vitest/ui": "^0.34.7",
|
51
51
|
"happy-dom": "^9.1.9",
|
52
52
|
"husky": "^8.0.3",
|
53
53
|
"lint-staged": "^14.0.1",
|
54
54
|
"prettier": "^3.1.0",
|
55
55
|
"rollup-plugin-postcss-lit": "^2.1.0",
|
56
56
|
"sass": "^1.69.5",
|
57
|
-
"typescript": "^5.
|
57
|
+
"typescript": "^5.3.3",
|
58
58
|
"vite": "^4.4.12",
|
59
59
|
"vitest": "0.34.6",
|
60
60
|
"wait-for-expect": "^3.0.2"
|
@@ -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;
|
@@ -31,7 +32,8 @@ export declare class MyMap extends LitElement {
|
|
31
32
|
featureFill: boolean;
|
32
33
|
featureBorderNone: boolean;
|
33
34
|
featureBuffer: number;
|
34
|
-
|
35
|
+
showGeojsonDataMarkers: boolean;
|
36
|
+
showCentreMarker: boolean;
|
35
37
|
markerImage: MarkerImageEnum;
|
36
38
|
markerLatitude: number;
|
37
39
|
markerLongitude: number;
|
@@ -40,6 +42,7 @@ export declare class MyMap extends LitElement {
|
|
40
42
|
type: string;
|
41
43
|
features: never[];
|
42
44
|
};
|
45
|
+
geojsonDataCopyright: string;
|
43
46
|
geojsonColor: string;
|
44
47
|
geojsonFill: boolean;
|
45
48
|
geojsonBuffer: number;
|
@@ -56,6 +59,7 @@ export declare class MyMap extends LitElement {
|
|
56
59
|
useScaleBarStyle: boolean;
|
57
60
|
showNorthArrow: boolean;
|
58
61
|
showPrint: boolean;
|
62
|
+
collapseAttributions: boolean;
|
59
63
|
clipGeojsonData: {
|
60
64
|
type: string;
|
61
65
|
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;
|