@mapcomponents/react-maplibre 1.0.7 → 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 CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ## [v1.0.7] - 2024-07-30
4
9
 
5
10
  ### Changed
package/dist/index.cjs.js CHANGED
@@ -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.name) {
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':