mirror of
https://github.com/maputnik/editor.git
synced 2025-12-30 18:10:01 +00:00
Ensure editor does not crash with raster layers
This commit is contained in:
@@ -16,6 +16,7 @@ class LayerIcon extends React.Component {
|
||||
const iconProps = { style: this.props.style }
|
||||
switch(this.props.type) {
|
||||
case 'fill-extrusion': return <BackgroundIcon {...iconProps} />
|
||||
case 'raster': return <FillIcon {...iconProps} />
|
||||
case 'fill': return <FillIcon {...iconProps} />
|
||||
case 'background': return <BackgroundIcon {...iconProps} />
|
||||
case 'line': return <LineIcon {...iconProps} />
|
||||
|
||||
@@ -93,9 +93,10 @@ export default class MapboxGlMap extends React.Component {
|
||||
style={{
|
||||
position: "fixed",
|
||||
top: 0,
|
||||
left: 550,
|
||||
bottom: 0,
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
width: "75%",
|
||||
...this.props.style,
|
||||
}}>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user