Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
case 'geojson_url': return
case 'geojson_json': return
case 'tilejson_vector': return
case 'tilexyz_vector': return
case 'tilejson_raster': return
case 'tilexyz_raster': return
case 'tilejson_raster-dem': return
case 'tilexyz_raster-dem': return
this.props.onChange({
...this.props.source,
encoding: encoding
})}
value={this.props.source.encoding || latest.source_raster_dem.encoding.default}
/>
default: return null
}
}
}
render() {
const commonProps = {
source: this.props.source,
onChange: this.props.onChange,
}
switch(this.props.mode) {
case 'geojson_url': return
case 'geojson_json': return
case 'tilejson_vector': return
case 'tilexyz_vector': return
case 'tilejson_raster': return
case 'tilexyz_raster': return
case 'tilejson_raster-dem': return
case 'tilexyz_raster-dem': return
this.props.onChange({
...this.props.source,
encoding: encoding
})}
value={this.props.source.encoding || latest.source_raster_dem.encoding.default}
/>
default: return null
}
}
}