mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 07:47:46 +01:00
Upgrade ol-mapbox-style to v0.14
This commit is contained in:
parent
0fb59ca544
commit
7ff0ac9bb5
2 changed files with 1 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue