diff --git a/src/components/App.jsx b/src/components/App.jsx index 3051b46..943879b 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -430,9 +430,10 @@ export default class App extends React.Component { onLayerSelect={this.onLayerSelect.bind(this)} /> } - const elementStyle = { - "filter": `url('#${this.state.mapFilter}')` - }; + const elementStyle = {}; + if(this.state.mapFilter) { + elementStyle.filter = `url('#${this.state.mapFilter}')`; + } return
{mapElement} diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index ebc65b7..18f3e95 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -66,6 +66,7 @@ export default class MapboxGlMap extends React.Component { onDataChange: () => {}, onLayerSelect: () => {}, mapboxAccessToken: tokens.mapbox, + options: {}, } constructor(props) {