mirror of
https://github.com/maputnik/editor.git
synced 2025-12-30 18:10:01 +00:00
Remove Immutable JS
This commit is contained in:
@@ -23,7 +23,7 @@ export default class MapboxGlMap extends Map {
|
||||
|
||||
//Mapbox GL now does diffing natively so we don't need to calculate
|
||||
//the necessary operations ourselves!
|
||||
this.state.map.setStyle(style.toJSON(nextProps.mapStyle), { diff: true})
|
||||
this.state.map.setStyle(nextProps.mapStyle, { diff: true})
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
@@ -31,7 +31,7 @@ export default class MapboxGlMap extends Map {
|
||||
|
||||
const map = new MapboxGl.Map({
|
||||
container: this.container,
|
||||
style: style.toJSON(this.props.mapStyle),
|
||||
style: this.props.mapStyle,
|
||||
});
|
||||
|
||||
map.on("style.load", (...args) => {
|
||||
|
||||
Reference in New Issue
Block a user