var size = 0; var placement = 'point'; var style_lakes_0 = function(feature, resolution){ var context = { feature: feature, variables: {} }; var value = feature.get("AREA_MI"); var labelText = ""; size = 0; var labelFont = "10px, sans-serif"; var labelFill = "#000000"; var bufferColor = ""; var bufferWidth = 0; var textAlign = "left"; var offsetX = 8; var offsetY = 3; var placement = 'point'; if ("" !== null) { labelText = String(""); } if (value >= 20.057000 && value <= 219.690600) { style = [ new ol.style.Style({ stroke: new ol.style.Stroke({color: 'rgba(0,0,0,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}),fill: new ol.style.Fill({color: 'rgba(247,251,255,1.0)'}), text: createTextStyle(feature, resolution, labelText, labelFont, labelFill, placement, bufferColor, bufferWidth) })] } else if (value >= 219.690600 && value <= 419.324200) { style = [ new ol.style.Style({ stroke: new ol.style.Stroke({color: 'rgba(0,0,0,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}),fill: new ol.style.Fill({color: 'rgba(199,220,239,1.0)'}), text: createTextStyle(feature, resolution, labelText, labelFont, labelFill, placement, bufferColor, bufferWidth) })] } else if (value >= 419.324200 && value <= 618.957800) { style = [ new ol.style.Style({ stroke: new ol.style.Stroke({color: 'rgba(0,0,0,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}),fill: new ol.style.Fill({color: 'rgba(114,178,215,1.0)'}), text: createTextStyle(feature, resolution, labelText, labelFont, labelFill, placement, bufferColor, bufferWidth) })] } else if (value >= 618.957800 && value <= 818.591400) { style = [ new ol.style.Style({ stroke: new ol.style.Stroke({color: 'rgba(0,0,0,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}),fill: new ol.style.Fill({color: 'rgba(40,120,184,1.0)'}), text: createTextStyle(feature, resolution, labelText, labelFont, labelFill, placement, bufferColor, bufferWidth) })] } else if (value >= 818.591400 && value <= 1018.225000) { style = [ new ol.style.Style({ stroke: new ol.style.Stroke({color: 'rgba(0,0,0,1.0)', lineDash: null, lineCap: 'butt', lineJoin: 'miter', width: 0}),fill: new ol.style.Fill({color: 'rgba(8,48,107,1.0)'}), text: createTextStyle(feature, resolution, labelText, labelFont, labelFill, placement, bufferColor, bufferWidth) })] }; return style; };