handle partial overrides correctly
This commit is contained in:
parent
d155a5ad5e
commit
5bd5b0fe9d
@ -257,10 +257,12 @@ mess.Renderer = function Renderer(env) {
|
||||
}
|
||||
}
|
||||
|
||||
// iterate in reverse - low to high specificity
|
||||
for (var i = ancestors.length - 1; i >= 0; i--) {
|
||||
for (var j = 0; j < winners.length; j++) {
|
||||
winners[j].inheritFrom(ancestors[i]);
|
||||
for (var i = 0; i < winners.length; i++) {
|
||||
for (var j = i + 1; j < winners.length; j++) {
|
||||
winners[i].inheritFrom(winners[j]);
|
||||
}
|
||||
for (var j = 0; j < ancestors.length; j++) {
|
||||
winners[i].inheritFrom(ancestors[j]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,13 +22,13 @@
|
||||
</Style>
|
||||
<Style name="world-line/__default__">
|
||||
<Rule>
|
||||
|
||||
|
||||
<Filter>([NAME] = 'Canada')</Filter>
|
||||
<LineSymbolizer stroke-width="1"
|
||||
stroke="#cccccc"/>
|
||||
</Rule>
|
||||
<Rule>
|
||||
|
||||
|
||||
<Filter>([NAME] != 'Canada')</Filter>
|
||||
<LineSymbolizer stroke-width="0.5"
|
||||
stroke="#ff0000"/>
|
||||
@ -61,7 +61,8 @@
|
||||
<Style name="countries-line/__default__">
|
||||
<Rule>
|
||||
<MaxScaleDenominator>12500000</MaxScaleDenominator>
|
||||
<LineSymbolizer stroke-width="0.5"/>
|
||||
<LineSymbolizer stroke-width="0.5"
|
||||
stroke="#cccccc"/>
|
||||
</Rule>
|
||||
<Rule>
|
||||
<MinScaleDenominator>12500000</MinScaleDenominator>
|
||||
|
Loading…
Reference in New Issue
Block a user