mirror of
https://github.com/maputnik/editor.git
synced 2026-08-24 22:17:25 +00:00
Upgrade to unstable MapboxGL JS
This commit is contained in:
@@ -24,7 +24,9 @@ export default class LayerWatcher {
|
||||
this._map.on('data', (e) => {
|
||||
if(e.dataType !== 'tile') return
|
||||
|
||||
this._sources[e.source.id] = e.source.vectorLayerIds
|
||||
//NOTE: This heavily depends on the internal API of Mapbox GL
|
||||
//so this breaks between Mapbox GL JS releases
|
||||
this._sources[e.sourceId] = e.style.sourceCaches[e.sourceId]._source.vectorLayerIds
|
||||
this.throttledAnalyzeVectorLayerFields()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user