mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-29 08:40:27 +01:00
Add filter button on the right bottom
This commit is contained in:
parent
2ff8ec07bb
commit
df61ae8c7a
1 changed files with 11 additions and 9 deletions
|
@ -95,22 +95,15 @@ export default class CombiningFilterEditor extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div>
|
return <div>
|
||||||
<div style={{ marginBottom: margins[2] }}>
|
<div style={{ marginBottom: margins[1] }}>
|
||||||
<DocLabel
|
<DocLabel
|
||||||
label={"Compound Filter"}
|
label={"Compound Filter"}
|
||||||
doc={GlSpec.layer.filter.doc + " Combine multiple filters together by using a compound filter."}
|
doc={GlSpec.layer.filter.doc + " Combine multiple filters together by using a compound filter."}
|
||||||
style={{
|
style={{
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
width: '30%',
|
width: '49%',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Button onClick={this.addFilterItem.bind(this)} style={{
|
|
||||||
display: 'inline-block',
|
|
||||||
width: '18%',
|
|
||||||
marginRight: '2%',
|
|
||||||
}}>
|
|
||||||
Add filter
|
|
||||||
</Button>
|
|
||||||
<SelectInput
|
<SelectInput
|
||||||
value={combiningOp}
|
value={combiningOp}
|
||||||
onChange={this.onFilterPartChanged.bind(this, 0)}
|
onChange={this.onFilterPartChanged.bind(this, 0)}
|
||||||
|
@ -122,6 +115,15 @@ export default class CombiningFilterEditor extends React.Component {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{editorBlocks}
|
{editorBlocks}
|
||||||
|
<div style={{marginTop: margins[1]}}>
|
||||||
|
<Button onClick={this.addFilterItem.bind(this)} style={{
|
||||||
|
display: 'inline-block',
|
||||||
|
marginLeft: '79%',
|
||||||
|
width: '20%',
|
||||||
|
}}>
|
||||||
|
Add filter
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue