@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/dist/index.esm.js CHANGED
@@ -3424,7 +3424,7 @@ function LayerListItem(_a) {
3424
3424
  var _layerComponent = useMemo(function () {
3425
3425
  var _a;
3426
3426
  if (layerComponent && type === 'layer') {
3427
- switch (layerComponent.type.name) {
3427
+ switch (layerComponent.type.displayName) {
3428
3428
  case 'MlWmsLayer':
3429
3429
  return React__default.cloneElement(layerComponent, __assign(__assign({}, layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props), { visible: _visible }));
3430
3430
  case 'MlVectorTileLayer':