@mapcomponents/react-maplibre 1.0.6 → 1.0.8
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/CHANGELOG.md +18 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v1.0.8] - 2024-09-16
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- 2862ad4: fix layerComponent identification in LayerListItem component (#185) …
|
|
7
|
+
|
|
8
|
+
## [v1.0.7] - 2024-07-30
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- a6bc647: Upgrade to maplibre-gl 4.5 (sky enabled) (#178)
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- dde2ef4: fix: incorrect property access (#181) …
|
|
15
|
+
|
|
16
|
+
## [v1.0.6] - 2024-07-30
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- 209ec04: Fix/use layerhook update on functions
|
|
3
20
|
|
|
4
21
|
## [v1.0.5] - 2024-06-21
|
|
5
22
|
|
|
6
23
|
### Changed
|
|
7
24
|
- 78f7106: client search component MlClientSearch removed from release…
|
|
25
|
+
|
|
8
26
|
### Fixed
|
|
9
27
|
- 78f7106: MlGeojsonlayer options.source bug
|
|
10
28
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -2712,7 +2712,7 @@ function useSource(props) {
|
|
|
2712
2712
|
var removeSource = React.useCallback(function () {
|
|
2713
2713
|
var _a, _b;
|
|
2714
2714
|
if (mapHook.map && ((_b = (_a = mapHook.map) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b._layers)) {
|
|
2715
|
-
for (var _i = 0, _c = Object.entries(mapHook.map.
|
|
2715
|
+
for (var _i = 0, _c = Object.entries(mapHook.map.style._layers); _i < _c.length; _i++) {
|
|
2716
2716
|
var _d = _c[_i], layerId = _d[0], layer = _d[1];
|
|
2717
2717
|
if (layer.source === sourceId.current) {
|
|
2718
2718
|
mapHook.map.removeLayer(layerId);
|
|
@@ -3448,7 +3448,7 @@ function LayerListItem(_a) {
|
|
|
3448
3448
|
var _layerComponent = React.useMemo(function () {
|
|
3449
3449
|
var _a;
|
|
3450
3450
|
if (layerComponent && type === 'layer') {
|
|
3451
|
-
switch (layerComponent.type.
|
|
3451
|
+
switch (layerComponent.type.displayName) {
|
|
3452
3452
|
case 'MlWmsLayer':
|
|
3453
3453
|
return React.cloneElement(layerComponent, __assign(__assign({}, layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props), { visible: _visible }));
|
|
3454
3454
|
case 'MlVectorTileLayer':
|