map/client/cesium/utils/utils.style.js
Showing 3 of 3 total issues
Function convertToCesiumFromStyle
has 74 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
export function convertToCesiumFromStyle (feature, options) { const style = _.get(feature, 'style', false) if (!style || !_.get(feature, 'geometry')) return {} let geometryType = _.get(GeoJsonGeometryTypesToCesiumEntityMappings, _.get(feature, 'geometry.type'))
Function convertToCesiumObjects
has a Cognitive Complexity of 29 (exceeds 20 allowed). Consider refactoring. Open
Open
export function convertToCesiumObjects (style) { const mapValue = (value) => { if (typeof value === 'object') { const type = value.type const options = value.options
- Read upRead up
Avoid too many return
statements within this function. Open
Open
return value