mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 14:37:27 +00:00
Ensure GeoJSON styling works
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user