@eox/layercontrol 0.6.8 → 0.7.0
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/README.md +8 -12
- package/dist/eox-layercontrol.js +1892 -1852
- package/dist/eox-layercontrol.umd.cjs +538 -483
- package/package.json +5 -4
- package/test/_mockMap.js +91 -0
- package/test/{general.cy.ts → general.cy.js} +34 -19
- package/test/layersUpdate.cy.js +200 -0
- package/test/_mockMap.ts +0 -93
- package/test/layersUpdate.cy.ts +0 -171
package/README.md
CHANGED
|
@@ -35,22 +35,14 @@ document.querySelector("map-div").map = olMap
|
|
|
35
35
|
<eox-layercontrol for="#map-div"></eox-layercontrol>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
### `
|
|
38
|
+
### `idProperty: string = "id"`
|
|
39
39
|
|
|
40
40
|
The layer identifier property of the layers. Fallback is set automatically based on `ol_uid` if not provided.
|
|
41
41
|
|
|
42
|
-
### `
|
|
42
|
+
### `titleProperty: string = "title"`
|
|
43
43
|
|
|
44
44
|
The layer title property of the layers. "title" by default, fallback is set automatically based on "layer" + `ol_uid` if not provided.
|
|
45
45
|
|
|
46
|
-
### `layerConfig: Array<string> = ["opacity"]`
|
|
47
|
-
|
|
48
|
-
// TODO
|
|
49
|
-
|
|
50
|
-
### `externalLayerConfig: Boolean = undefined`
|
|
51
|
-
|
|
52
|
-
// TODO
|
|
53
|
-
|
|
54
46
|
### `unstyled: Boolean`
|
|
55
47
|
|
|
56
48
|
Display the unstyled version of the layer control.
|
|
@@ -79,7 +71,7 @@ Initially hide a layer from the layer control, but make it available as an optio
|
|
|
79
71
|
|
|
80
72
|
Make layers mutually exclusive. If two or more layers (on the same level, i.e. at root or inside a layer group) have this property, then only one of them can be visualized at a time.
|
|
81
73
|
|
|
82
|
-
### `
|
|
74
|
+
### `layerControlExpand?: Boolean`
|
|
83
75
|
|
|
84
76
|
Pre-expand a layer dropdown so that it is always open when the component initializes.
|
|
85
77
|
|
|
@@ -99,4 +91,8 @@ npm publish (requires OTP)
|
|
|
99
91
|
|
|
100
92
|
### Testing
|
|
101
93
|
|
|
102
|
-
|
|
94
|
+
This element includes components tests and is part of e2e tests. Please refer to the root README for more details.
|
|
95
|
+
|
|
96
|
+
## Changelog
|
|
97
|
+
|
|
98
|
+
Created automatically [here](./CHANGELOG.md)
|