yio-map 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/YioMap.d.ts +15 -0
- package/dist/YioMap.d.ts.map +1 -1
- package/dist/controls/AddressSearch.d.ts +53 -0
- package/dist/controls/AddressSearch.d.ts.map +1 -0
- package/dist/controls/AddressSearchControl.d.ts +9 -0
- package/dist/controls/AddressSearchControl.d.ts.map +1 -0
- package/dist/controls/UserPinInteraction.d.ts +5 -0
- package/dist/controls/UserPinInteraction.d.ts.map +1 -1
- package/dist/yio-map.iife.js +249 -0
- package/dist/yio-map.js +591 -143
- package/dist/yio-map.umd.cjs +142 -37
- package/package.json +20 -19
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/YioMap.d.ts
CHANGED
|
@@ -24,6 +24,9 @@ export class YioMap extends LitElement {
|
|
|
24
24
|
enableSelect: {
|
|
25
25
|
type: BooleanConstructor;
|
|
26
26
|
};
|
|
27
|
+
enableSearch: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
27
30
|
geojsonSources: {
|
|
28
31
|
type: ObjectConstructor;
|
|
29
32
|
};
|
|
@@ -37,6 +40,9 @@ export class YioMap extends LitElement {
|
|
|
37
40
|
userSelect: {
|
|
38
41
|
attribute: boolean;
|
|
39
42
|
};
|
|
43
|
+
sourceLayerVisibility: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
};
|
|
40
46
|
};
|
|
41
47
|
/** @type {boolean} */
|
|
42
48
|
notifyNextChange: boolean;
|
|
@@ -68,9 +74,18 @@ export class YioMap extends LitElement {
|
|
|
68
74
|
get enablePinning(): boolean;
|
|
69
75
|
set geojsonSources(value: any);
|
|
70
76
|
get geojsonSources(): any;
|
|
77
|
+
set sourceLayerVisibility(value: any);
|
|
78
|
+
get sourceLayerVisibility(): any;
|
|
79
|
+
set enableSearch(value: boolean);
|
|
80
|
+
get enableSearch(): boolean;
|
|
71
81
|
get editFeatures(): any;
|
|
72
82
|
firstUpdated(changedProperties: any): void;
|
|
73
83
|
updated(changedProperties: any): void;
|
|
84
|
+
/**
|
|
85
|
+
* Set the pin to a specific location.
|
|
86
|
+
* @param {Array<number>} lonLat - [longitude, latitude] in EPSG:4326
|
|
87
|
+
*/
|
|
88
|
+
setPin(lonLat: Array<number>): void;
|
|
74
89
|
render(): import("lit-html").TemplateResult<1>;
|
|
75
90
|
#private;
|
|
76
91
|
}
|
package/dist/YioMap.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YioMap.d.ts","sourceRoot":"","sources":["../src/YioMap.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"YioMap.d.ts","sourceRoot":"","sources":["../src/YioMap.js"],"names":[],"mappings":"AAqBA;IACE,yCAmCE;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAcE;IAEF,sBAAsB;IACtB,kBADW,OAAO,CACO;IAwEvB,iBAAoB;IACpB,aAAa;IACb,kBAAoB;IAYtB;;OAEG;IACH,oBAFa,UAAU,CAItB;IAED;;OAEG;IACH,2BAFa,OAAO,CAAC,UAAU,CAAC,CAI/B;IAED;;OAEG;IACH,oBAFW,KAAK,QAOf;IAHG,wDAAwE;IAS5E,8BAGC;IAPD,yBAEC;IAWD,8BAGC;IAPD,yBAEC;IAOD,gCAGC;IAED,2BAEC;IAMD,iCAGC;IAPD,4BAEC;IAWD,kCAGC;IAPD,6BAEC;IAWD,+BAEC;IAND,0BAEC;IAUD,sCAEC;IAND,iCAEC;IAUD,iCAGC;IAPD,4BAEC;IAOD,wBAcC;IAoHD,2CAQC;IAED,sCAwCC;IAcD;;;OAGG;IACH,eAFW,KAAK,CAAC,MAAM,CAAC,QAIvB;IAgBD,+CAEC;;CACF;2BA3dgD,KAAK;uBAU/B,mBAAmB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export class AddressSearch extends LitElement {
|
|
2
|
+
static styles: import("lit").CSSResult[];
|
|
3
|
+
static properties: {
|
|
4
|
+
placeholder: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
};
|
|
7
|
+
resultCount: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
};
|
|
10
|
+
sortByDistance: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
};
|
|
13
|
+
minSearchLength: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
};
|
|
16
|
+
mapCenter: {
|
|
17
|
+
type: ArrayConstructor;
|
|
18
|
+
};
|
|
19
|
+
_query: {
|
|
20
|
+
state: boolean;
|
|
21
|
+
};
|
|
22
|
+
_results: {
|
|
23
|
+
state: boolean;
|
|
24
|
+
};
|
|
25
|
+
_loading: {
|
|
26
|
+
state: boolean;
|
|
27
|
+
};
|
|
28
|
+
_showResults: {
|
|
29
|
+
state: boolean;
|
|
30
|
+
};
|
|
31
|
+
_error: {
|
|
32
|
+
state: boolean;
|
|
33
|
+
};
|
|
34
|
+
_totalResults: {
|
|
35
|
+
state: boolean;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
placeholder: string;
|
|
39
|
+
resultCount: number;
|
|
40
|
+
sortByDistance: boolean;
|
|
41
|
+
minSearchLength: number;
|
|
42
|
+
mapCenter: any;
|
|
43
|
+
_query: string;
|
|
44
|
+
_results: any[];
|
|
45
|
+
_loading: boolean;
|
|
46
|
+
_showResults: boolean;
|
|
47
|
+
_error: string;
|
|
48
|
+
_totalResults: number;
|
|
49
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
50
|
+
#private;
|
|
51
|
+
}
|
|
52
|
+
import { LitElement } from 'lit';
|
|
53
|
+
//# sourceMappingURL=AddressSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddressSearch.d.ts","sourceRoot":"","sources":["../../src/controls/AddressSearch.js"],"names":[],"mappings":"AAOA;IACE,yCAOE;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYE;IAOA,oBAAsC;IACtC,oBAAqB;IACrB,wBAA2B;IAC3B,wBAAwB;IACxB,eAAqB;IACrB,eAAgB;IAChB,gBAAkB;IAClB,kBAAqB;IACrB,sBAAyB;IACzB,eAAkB;IAClB,sBAAsB;IA+PxB,+CAqBC;;CACF;2BAnUgD,KAAK"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default class AddressSearchControl extends Control {
|
|
2
|
+
constructor(options?: {});
|
|
3
|
+
/** @type {AddressSearch} */
|
|
4
|
+
searchElement: AddressSearch;
|
|
5
|
+
setMap(map: any): void;
|
|
6
|
+
}
|
|
7
|
+
import Control from 'ol/control/Control.js';
|
|
8
|
+
import { AddressSearch } from './AddressSearch.js';
|
|
9
|
+
//# sourceMappingURL=AddressSearchControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddressSearchControl.d.ts","sourceRoot":"","sources":["../../src/controls/AddressSearchControl.js"],"names":[],"mappings":"AAIA;IAIE,0BAaC;IAhBD,4BAA4B;IAC5B,eADW,aAAa,CACV;IAiBd,uBAYC;CACF;oBApCmB,uBAAuB;8BAEb,oBAAoB"}
|
|
@@ -9,6 +9,11 @@ export default class UserPinInteraction extends Interaction {
|
|
|
9
9
|
constructor(options: Options);
|
|
10
10
|
setMap(map: any): void;
|
|
11
11
|
setActive(active: any): void;
|
|
12
|
+
/**
|
|
13
|
+
* Set the pin to a specific location.
|
|
14
|
+
* @param {Array<number>} coordinate - coordinate in EPSG:3857
|
|
15
|
+
*/
|
|
16
|
+
setPin(coordinate: Array<number>): void;
|
|
12
17
|
#private;
|
|
13
18
|
}
|
|
14
19
|
export type Options = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserPinInteraction.d.ts","sourceRoot":"","sources":["../../src/controls/UserPinInteraction.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserPinInteraction.d.ts","sourceRoot":"","sources":["../../src/controls/UserPinInteraction.js"],"names":[],"mappings":"AAQA;;;GAGG;AAEH;IAQE;;OAEG;IACH,qBAFW,OAAO,EAMjB;IAED,uBAUC;IAqCD,6BAKC;IAED;;;OAGG;IACH,mBAFW,KAAK,CAAC,MAAM,CAAC,QAIvB;;CAYF;;YA5Fa,OAAO,cAAc,EAAE,MAAM;;wBAVnB,+BAA+B"}
|