@mapcomponents/react-maplibre 1.0.6 → 1.0.7
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 +13 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v1.0.7] - 2024-07-30
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- a6bc647: Upgrade to maplibre-gl 4.5 (sky enabled) (#178)
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- dde2ef4: fix: incorrect property access (#181) …
|
|
10
|
+
|
|
11
|
+
## [v1.0.6] - 2024-07-30
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- 209ec04: Fix/use layerhook update on functions
|
|
3
15
|
|
|
4
16
|
## [v1.0.5] - 2024-06-21
|
|
5
17
|
|
|
6
18
|
### Changed
|
|
7
19
|
- 78f7106: client search component MlClientSearch removed from release…
|
|
20
|
+
|
|
8
21
|
### Fixed
|
|
9
22
|
- 78f7106: MlGeojsonlayer options.source bug
|
|
10
23
|
|
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);
|