diff --git a/src/components/layers/LayerEditor.jsx b/src/components/layers/LayerEditor.jsx index 1d43bff..47ebe20 100644 --- a/src/components/layers/LayerEditor.jsx +++ b/src/components/layers/LayerEditor.jsx @@ -117,6 +117,11 @@ export default class LayerEditor extends React.Component { comment = this.props.layer.metadata['maputnik:comment'] } + let sourceLayerIds; + if(this.props.sources.hasOwnProperty(this.props.layer.source)) { + sourceLayerIds = this.props.sources[this.props.layer.source].layers; + } + switch(type) { case 'layer': return