0 ? "" : labelFromFieldName(this.props.fieldName)}
/>
if(idx === 1) {
label =
}
const zoomLevel = stop[0]
const value = stop[1]
return
{label}
this.changeStop(idx, changedStop, value)}
min={0}
max={22}
/>
this.changeStop(idx, zoomLevel, newValue)}
style={{
width: '41%',
marginLeft: '1.5%',
}}
/>
})
return
{zoomFields}
} else {
if(this.props.fieldSpec['zoom-function']) {
}
return
{this.props.fieldSpec['zoom-function'] &&
}
}
}
}
function labelFromFieldName(fieldName) {
let label = fieldName.split('-').slice(1).join(' ')
return capitalize(label)
}