var size = 0; var ranges_airports = [[9.000000, 321.000000, [ new ol.style.Style({ image: new ol.style.Circle({radius: 4.0 + size, 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)'})}) })]], [321.000000, 633.000000, [ new ol.style.Style({ image: new ol.style.Circle({radius: 4.0 + size, 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)'})}) })]], [633.000000, 945.000000, [ new ol.style.Style({ image: new ol.style.Circle({radius: 4.0 + size, 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)'})}) })]], [945.000000, 1257.000000, [ new ol.style.Style({ image: new ol.style.Circle({radius: 4.0 + size, 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)'})}) })]], [1257.000000, 1569.000000, [ new ol.style.Style({ image: new ol.style.Circle({radius: 4.0 + size, 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)'})}) })]]]; var styleCache_airports={} var style_airports = function(feature, resolution){ var value = feature.get("ELEV"); var style = ranges_airports[0][2]; for (i = 0; i < ranges_airports.length; i++){ var range = ranges_airports[i]; if (value > range[0] && value<=range[1]){ style = range[2]; } }; if ("" !== null) { var labelText = String(""); } else { var labelText = "" } var key = value + "_" + labelText if (!styleCache_airports[key]){ var text = new ol.style.Text({ font: '10.725px \'MS Shell Dlg 2\', sans-serif', text: labelText, textBaseline: "center", textAlign: "left", offsetX: 5, offsetY: 3, fill: new ol.style.Fill({ color: 'rgba(0, 0, 0, 255)' }), }); styleCache_airports[key] = new ol.style.Style({"text": text}) } var allStyles = [styleCache_airports[key]]; allStyles.push.apply(allStyles, style); return allStyles; };