mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 06:27:25 +00:00
React v16.3.0 fixes.
This commit is contained in:
@@ -29,7 +29,7 @@ class OpenLayers3Map extends React.Component {
|
||||
const styleFunc = olms.apply(this.map, newMapStyle)
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
require.ensure(["ol", "ol-mapbox-style"], () => {
|
||||
if(!this.map) return
|
||||
this.updateStyle(nextProps.mapStyle)
|
||||
|
||||
Reference in New Issue
Block a user