We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1447e8b + 6ea70ab commit 530bfafCopy full SHA for 530bfaf
src/components/App.jsx
@@ -430,9 +430,10 @@ export default class App extends React.Component {
430
onLayerSelect={this.onLayerSelect.bind(this)} />
431
}
432
433
- const elementStyle = {
434
- "filter": `url('#${this.state.mapFilter}')`
435
- };
+ const elementStyle = {};
+ if(this.state.mapFilter) {
+ elementStyle.filter = `url('#${this.state.mapFilter}')`;
436
+ }
437
438
return <div style={elementStyle}>
439
{mapElement}
src/components/map/MapboxGlMap.jsx
@@ -66,6 +66,7 @@ export default class MapboxGlMap extends React.Component {
66
onDataChange: () => {},
67
onLayerSelect: () => {},
68
mapboxAccessToken: tokens.mapbox,
69
+ options: {},
70
71
72
constructor(props) {
0 commit comments