mirror of
https://github.com/maputnik/editor.git
synced 2025-12-26 16:10:01 +00:00
Removed componentWillUpdate
This commit is contained in:
@@ -29,10 +29,10 @@ class OpenLayers3Map extends React.Component {
|
||||
const styleFunc = olms.apply(this.map, newMapStyle)
|
||||
}
|
||||
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
componentDidUpdate() {
|
||||
require.ensure(["ol", "ol-mapbox-style"], () => {
|
||||
if(!this.map) return
|
||||
this.updateStyle(nextProps.mapStyle)
|
||||
this.updateStyle(this.props.mapStyle)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user