@opensystemslab/map 0.5.3 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component-lib.es.js +523 -531
- package/dist/component-lib.umd.js +522 -530
- package/dist/index.html +10 -2
- package/dist/style.css +1 -1
- package/package.json +6 -6
- package/types/components/address-autocomplete/index.d.ts +16 -3
- package/types/components/my-map/index.d.ts +5 -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.6",
|
4
4
|
"license": "OGL-UK-3.0",
|
5
5
|
"private": false,
|
6
6
|
"repository": {
|
@@ -24,17 +24,17 @@
|
|
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",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LitElement } from "lit";
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
2
2
|
declare type Address = {
|
3
3
|
LPI: any;
|
4
4
|
};
|
@@ -20,11 +20,24 @@ 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;
|
27
|
-
|
27
|
+
/**
|
28
|
+
* Render an errorMessage container
|
29
|
+
* Must always be visible to ensure that role="status" works for screenreaders
|
30
|
+
* @param errorMessage
|
31
|
+
* @returns TemplateResult
|
32
|
+
*/
|
33
|
+
_getErrorMessageContainer(errorMessage: string | undefined): TemplateResult;
|
34
|
+
/**
|
35
|
+
* If not in state of error, return the autocomplete
|
36
|
+
* @param errorMessage
|
37
|
+
* @returns TemplateResult | null
|
38
|
+
*/
|
39
|
+
_getAutocomplete(errorMessage: string | undefined): TemplateResult | null;
|
40
|
+
render(): TemplateResult<1>;
|
28
41
|
/**
|
29
42
|
* dispatches an event for clients to subscribe to
|
30
43
|
* @param eventName
|
@@ -21,7 +21,12 @@ export declare class MyMap extends LitElement {
|
|
21
21
|
clickFeatures: boolean;
|
22
22
|
featureColor: string;
|
23
23
|
featureFill: boolean;
|
24
|
+
featureBorderNone: boolean;
|
24
25
|
featureBuffer: number;
|
26
|
+
showMarker: boolean;
|
27
|
+
markerLatitude: number;
|
28
|
+
markerLongitude: number;
|
29
|
+
markerColor: string;
|
25
30
|
geojsonData: {
|
26
31
|
type: string;
|
27
32
|
features: never[];
|
@@ -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
|