let globalStyle = { cityLand(gridcode) { let fillColor = ["#6E7F8580","#7B9CFB80","#979B4980","#E9920980","#182F1380","#30791380","#0D53AF80"]; return new ol.style.Style({ fill: new ol.style.Fill({ color: fillColor[gridcode], }) }); }, pointStyle(f){ let colors = ['rgb(7,31,250)','rgb(7,31,250)','rgb(250,189,7)','rgb(7,250,11)'] return new ol.style.Style({ text:new ol.style.Text({ text:f.getId(), stroke: new ol.style.Stroke({ color: 'rgba(239,236,236)', width: 1, }), fill: new ol.style.Fill({ color: 'rgba(239,236,236)', }), font:"16px sans-serif" }), image: new ol.style.RegularShape({ stroke: new ol.style.Stroke({ color: colors[f.get('status')], width: 2, }), fill: new ol.style.Fill({ color: colors[f.get('status')], }), radius: 15, points:20, angle: 0 }) }); } }