mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 22:47:39 +00:00
Upgrade ol-mapbox-style to v0.14
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@
|
|||||||
"mapbox-gl-inspect": "^1.0.8",
|
"mapbox-gl-inspect": "^1.0.8",
|
||||||
"mapbox-gl-style-spec": "^8.11.0",
|
"mapbox-gl-style-spec": "^8.11.0",
|
||||||
"mousetrap": "^1.6.0",
|
"mousetrap": "^1.6.0",
|
||||||
"ol-mapbox-style": "0.0.11",
|
"ol-mapbox-style": "0.0.14",
|
||||||
"openlayers": "^3.19.1",
|
"openlayers": "^3.19.1",
|
||||||
"randomcolor": "^0.4.4",
|
"randomcolor": "^0.4.4",
|
||||||
"react": "^15.4.0",
|
"react": "^15.4.0",
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ class OpenLayers3Map extends React.Component {
|
|||||||
const olms = require('ol-mapbox-style')
|
const olms = require('ol-mapbox-style')
|
||||||
const jsonStyle = nextProps.mapStyle
|
const jsonStyle = nextProps.mapStyle
|
||||||
const styleFunc = olms.getStyleFunction(jsonStyle, 'openmaptiles', this.resolutions)
|
const styleFunc = olms.getStyleFunction(jsonStyle, 'openmaptiles', this.resolutions)
|
||||||
console.log('New style babee')
|
|
||||||
|
|
||||||
const layer = this.layer
|
const layer = this.layer
|
||||||
layer.setStyle(styleFunc)
|
layer.setStyle(styleFunc)
|
||||||
|
|||||||
Reference in New Issue
Block a user