Added heatmap layer type.

This commit is contained in:
orangemug
2018-02-18 11:50:04 +00:00
parent a092bc2689
commit 77ddf67201
5 changed files with 19 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ export default class LayerEditor extends React.Component {
onChange={v => this.changeProperty(null, 'source', v)}
/>
}
{this.props.layer.type !== 'raster' && this.props.layer.type !== 'background' && this.props.layer.type !== 'hillshade' &&
{['background', 'raster', 'hillshade', 'heatmap'].indexOf(this.state.type) < 0 &&
<LayerSourceLayerBlock
sourceLayerIds={sourceLayerIds}
value={this.props.layer['source-layer']}

View File

@@ -23,6 +23,7 @@ class LayerTypeBlock extends React.Component {
['circle', 'Circle'],
['fill-extrusion', 'Fill Extrusion'],
['hillshade', 'Hillshade'],
['heatmap', 'Heatmap'],
]}
onChange={this.props.onChange}
value={this.props.value}