Upgrade to unstable MapboxGL JS

This commit is contained in:
Lukas Martinelli
2016-12-20 13:28:50 +01:00
parent fde60ac3e0
commit 7ca48add75
6 changed files with 12 additions and 44 deletions
+3 -1
View File
@@ -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()
})
}