diff --git a/plugins/map/OverviewSupport.jsx b/plugins/map/OverviewSupport.jsx index a400ecbb1..954f67092 100644 --- a/plugins/map/OverviewSupport.jsx +++ b/plugins/map/OverviewSupport.jsx @@ -12,6 +12,7 @@ import {connect} from 'react-redux'; import ol from 'openlayers'; import PropTypes from 'prop-types'; +import {v1 as uuidv1} from 'uuid'; import {LayerRole} from '../../actions/layers'; import OlLayer from '../../components/map/OlLayer'; @@ -58,7 +59,8 @@ class OverviewMap extends React.Component { if (this.props.options.layer) { overviewLayer = { ...this.props.options.layer, - visibility: true + visibility: true, + id: uuidv1() }; if (overviewLayer.type === 'wms') { overviewLayer.version = overviewLayer.params.VERSION || overviewLayer.version || this.props.themes?.defaultWMSVersion || "1.3.0";