@eox/layercontrol 0.6.9 → 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 +7 -11
- package/dist/eox-layercontrol.js +1893 -1853
- 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.
|
|
@@ -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)
|