Upgrade ol-mapbox-style to v0.14

This commit is contained in:
Lukas Martinelli 2017-01-10 12:04:19 +01:00
parent 0fb59ca544
commit 7ff0ac9bb5
2 changed files with 1 additions and 2 deletions

View file

@ -31,7 +31,7 @@
"mapbox-gl-inspect": "^1.0.8",
"mapbox-gl-style-spec": "^8.11.0",
"mousetrap": "^1.6.0",
"ol-mapbox-style": "0.0.11",
"ol-mapbox-style": "0.0.14",
"openlayers": "^3.19.1",
"randomcolor": "^0.4.4",
"react": "^15.4.0",

View file

@ -19,7 +19,6 @@ class OpenLayers3Map extends React.Component {
const olms = require('ol-mapbox-style')
const jsonStyle = nextProps.mapStyle
const styleFunc = olms.getStyleFunction(jsonStyle, 'openmaptiles', this.resolutions)
console.log('New style babee')
const layer = this.layer
layer.setStyle(styleFunc)