@opensystemslab/map 0.5.4 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component-lib.es.js +21769 -12607
- package/dist/component-lib.umd.js +108 -12710
- package/dist/index.html +10 -2
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/types/components/address-autocomplete/index.d.ts +1 -1
- package/types/components/my-map/index.d.ts +8 -0
- package/types/components/my-map/os-features.d.ts +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opensystemslab/map",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.7",
|
4
4
|
"license": "OGL-UK-3.0",
|
5
5
|
"private": false,
|
6
6
|
"repository": {
|
@@ -24,22 +24,22 @@
|
|
24
24
|
"dependencies": {
|
25
25
|
"@turf/union": "^6.5.0",
|
26
26
|
"accessible-autocomplete": "^2.0.4",
|
27
|
-
"govuk-frontend": "^
|
27
|
+
"govuk-frontend": "^4.0.1",
|
28
28
|
"lit": "^2.0.0-rc.2",
|
29
29
|
"ol": "^6.9.0",
|
30
|
-
"ol-mapbox-style": "^
|
30
|
+
"ol-mapbox-style": "^8.0.7",
|
31
31
|
"postcode": "^5.1.0",
|
32
32
|
"rambda": "^7.0.1"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
|
-
"@types/node": "^
|
36
|
-
"husky": "^
|
37
|
-
"lint-staged": "^
|
35
|
+
"@types/node": "^18.0.1",
|
36
|
+
"husky": "^8.0.1",
|
37
|
+
"lint-staged": "^13.0.3",
|
38
38
|
"prettier": "^2.3.2",
|
39
39
|
"rollup-plugin-postcss-lit": "^2.0.0",
|
40
40
|
"sass": "^1.44.0",
|
41
41
|
"typescript": "^4.3.5",
|
42
|
-
"vite": "^
|
42
|
+
"vite": "^3.0.3"
|
43
43
|
},
|
44
44
|
"lint-staged": {
|
45
45
|
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md,html}": "prettier --write"
|
@@ -20,7 +20,7 @@ export declare class AddressAutocomplete extends LitElement {
|
|
20
20
|
private _osError;
|
21
21
|
connectedCallback(): void;
|
22
22
|
disconnectedCallback(): void;
|
23
|
-
|
23
|
+
_getLightDropdownArrow(): string;
|
24
24
|
firstUpdated(): void;
|
25
25
|
_fetchData(offset?: number, prevResults?: Address[]): Promise<void>;
|
26
26
|
_getLabelClasses(): string;
|
@@ -2,6 +2,7 @@ import { LitElement } from "lit";
|
|
2
2
|
import Map from "ol/Map";
|
3
3
|
import { DrawPointerEnum } from "./drawing";
|
4
4
|
import { AreaUnitEnum } from "./utils";
|
5
|
+
declare type MarkerImageEnum = "circle" | "pin";
|
5
6
|
export declare class MyMap extends LitElement {
|
6
7
|
static styles: import("lit").CSSResult;
|
7
8
|
id: string;
|
@@ -21,7 +22,12 @@ export declare class MyMap extends LitElement {
|
|
21
22
|
clickFeatures: boolean;
|
22
23
|
featureColor: string;
|
23
24
|
featureFill: boolean;
|
25
|
+
featureBorderNone: boolean;
|
24
26
|
featureBuffer: number;
|
27
|
+
showMarker: boolean;
|
28
|
+
markerLatitude: number;
|
29
|
+
markerLongitude: number;
|
30
|
+
markerColor: string;
|
25
31
|
geojsonData: {
|
26
32
|
type: string;
|
27
33
|
features: never[];
|
@@ -38,6 +44,7 @@ export declare class MyMap extends LitElement {
|
|
38
44
|
areaUnit: AreaUnitEnum;
|
39
45
|
showScale: boolean;
|
40
46
|
useScaleBarStyle: boolean;
|
47
|
+
markerImage: MarkerImageEnum;
|
41
48
|
map?: Map;
|
42
49
|
constructor();
|
43
50
|
firstUpdated(): void;
|
@@ -55,3 +62,4 @@ declare global {
|
|
55
62
|
"my-map": MyMap;
|
56
63
|
}
|
57
64
|
}
|
65
|
+
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Vector as VectorLayer } from "ol/layer";
|
2
2
|
import { Vector as VectorSource } from "ol/source";
|
3
3
|
export declare const outlineSource: VectorSource<import("ol/geom/Geometry").default>;
|
4
|
-
export declare function makeFeatureLayer(color: string, featureFill: boolean): VectorLayer<VectorSource<import("ol/geom/Geometry").default>>;
|
4
|
+
export declare function makeFeatureLayer(color: string, featureFill: boolean, borderNone: boolean): VectorLayer<VectorSource<import("ol/geom/Geometry").default>>;
|
5
5
|
/**
|
6
6
|
* Create an OGC XML filter parameter value which will select the TopographicArea
|
7
7
|
* features containing the coordinates of the provided point
|