Ensure GeoJSON styling works

This commit is contained in:
Lukas Martinelli
2016-12-31 15:15:28 +01:00
parent b0e9790382
commit 99acbd4d92
4 changed files with 30 additions and 11 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export default class LayerWatcher {
const previousVectorLayers = { ...this._vectorLayers }
Object.keys(this._sources).forEach(sourceId => {
this._sources[sourceId].forEach(vectorLayerId => {
(this._sources[sourceId] || []).forEach(vectorLayerId => {
const knownProperties = this._vectorLayers[vectorLayerId] || {}
const params = { sourceLayer: vectorLayerId }
map.querySourceFeatures(sourceId, params).forEach(feature => {