Skip to content

Commit

Permalink
Update config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yopaseopor committed Nov 4, 2024
1 parent 7f7e283 commit 61fe7f2
Showing 1 changed file with 0 additions and 144 deletions.
144 changes: 0 additions & 144 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11270,150 +11270,6 @@ var vectorLayer = new ol.layer.Vector({
});
return style;
}
},
{
group: '2024-10-29 DANA',
title: 'Destroyed with names',
query: '(nwr[~"^destroyed(:.*)?$"~"."]({{bbox}});node(w););out meta;',
iconSrc: imgSrc + 'base/circle.svg',
iconStyle: 'background-color:#D00B67',
style: function (feature) {
var key_regex = /^name$/
var name_key = feature.getKeys().filter(function(t){return t.match(key_regex)}).pop() || "name"
var name = feature.get(name_key) || '';
var styles = {
'destroyed:building': {
'.*': new ol.style.Style({
zIndex: 100,
stroke: new ol.style.Stroke({
color: 'rgba(246, 99, 79, 1.0)',
width: 1
}),
fill: new ol.style.Fill({
color: 'rgba(246, 99, 79, 0.3)'
}),
text: new ol.style.Text({
text: name
})
})
},
'destroyed:highway': {
'residential': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba( 187, 46, 204, 1.0)',
width: 1
}),
text: new ol.style.Text({
text: name,
placement: 'line'
})
}),
'living_street': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba( 187, 46, 204, 1.0)',
width: 1
}),
text: new ol.style.Text({
text: name,
placement: 'line'
})
}),
'.*': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba( 187, 46, 204, 1.0)',
width: 1
}),
text: new ol.style.Text({
text: name
})
})
},
'destroyed:bridge': {
'residential': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba( 187, 46, 204, 1.0)',
width: 1
}),
text: new ol.style.Text({
text: name,
placement: 'line'
})
}),
'living_street': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba( 187, 46, 204, 1.0)',
width: 1
}),
text: new ol.style.Text({
text: name,
placement: 'line'
})
}),
'.*': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba( 187, 46, 204, 1.0)',
width: 1
}),
text: new ol.style.Text({
text: name
})
})
},
'destroyed:tunnel': {
'residential': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba(255, 255, 255, 1.0)',
width: 4
}),
text: new ol.style.Text({
text: name,
placement: 'line'
})
}),
'living_street': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba( 187, 46, 204, 1.0)',
width: 1
}),
text: new ol.style.Text({
text: name,
placement: 'line'
})
}),
'.*': new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba( 187, 46, 204, 1.0)',
width: 1
}),
text: new ol.style.Text({
text: name
})
})
},
'destroyed:natural': {
'tree': new ol.style.Style({
image: new ol.style.Circle({
radius: 2,
fill: new ol.style.Fill({
color: 'rgba(140, 208, 95, 1.0)'
}),
stroke: null
})
})
}
};
for (var key in styles) {
var value = feature.get(key);
if (value !== undefined) {
for (var regexp in styles[key]) {
if (new RegExp(regexp).test(value)) {
return styles[key][regexp];
}
}
}
}
return null;
}

},
{
Expand Down

0 comments on commit 61fe7f2

Please sign in to comment.