use theme priority(for tag group) also for node labels
This commit is contained in:
parent
5a2cfe16a5
commit
01b6a8acf4
@ -158,7 +158,6 @@ private final static String TAG = TextOverlay.class.getName();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// class ActiveTile {
|
||||
// MapTile tile;
|
||||
// int activeLabels;
|
||||
@ -386,7 +385,6 @@ private final static String TAG = TextOverlay.class.getName();
|
||||
|
||||
int maxx = Tile.SIZE << (zoom - 1);
|
||||
|
||||
|
||||
if (dbg != null)
|
||||
addDebugLayers(dbg);
|
||||
|
||||
@ -557,12 +555,18 @@ private final static String TAG = TextOverlay.class.getName();
|
||||
l.text.fontHeight + MIN_CAPTION_DIST);
|
||||
|
||||
boolean overlaps = false;
|
||||
for (Label lp = mLabels; lp != null; lp = (Label) lp.next) {
|
||||
|
||||
for (Label lp = mLabels; lp != null;) {
|
||||
if (l.bbox.overlaps(lp.bbox)) {
|
||||
if (l.text.priority < lp.text.priority) {
|
||||
lp = removeLabel(lp);
|
||||
continue;
|
||||
}
|
||||
|
||||
overlaps = true;
|
||||
break;
|
||||
}
|
||||
lp = (Label) lp.next;
|
||||
}
|
||||
if (!overlaps) {
|
||||
addLabel(l);
|
||||
|
||||
@ -1060,27 +1060,27 @@
|
||||
<rule e="node" k="place" v="*">
|
||||
<rule e="node" k="*" v="suburb" zoom-max="14">
|
||||
<caption k="name" font-style="italic" font-size="17" fill="#606060"
|
||||
stroke="#ffffff" stroke-width="2.0" />
|
||||
stroke="#ffffff" stroke-width="2.0" priority="4"/>
|
||||
</rule>
|
||||
<rule e="node" k="*" v="village" zoom-max="14">
|
||||
<caption k="name" font-size="17" fill="#2020cc"
|
||||
stroke="#ffffff" stroke-width="2.0" />
|
||||
stroke="#ffffff" stroke-width="2.0" priority="3"/>
|
||||
</rule>
|
||||
<rule e="node" k="*" v="island" zoom-min="10">
|
||||
<caption k="name" font-style="bold" font-size="20" fill="#000000"
|
||||
stroke="#ffffff" stroke-width="2.0" />
|
||||
stroke="#ffffff" stroke-width="2.0" priority="1"/>
|
||||
</rule>
|
||||
<rule e="node" k="*" v="town">
|
||||
<caption k="name" font-size="19" fill="#000000"
|
||||
stroke="#ffffff" stroke-width="2.0" />
|
||||
stroke="#ffffff" stroke-width="2.0" priority="2"/>
|
||||
</rule>
|
||||
<rule e="node" k="*" v="city">
|
||||
<caption k="name" font-size="20" fill="#000000"
|
||||
stroke="#ffffff" stroke-width="2.0" />
|
||||
stroke="#ffffff" stroke-width="2.0" priority="1"/>
|
||||
</rule>
|
||||
<rule e="node" k="*" v="country">
|
||||
<caption k="name" font-style="bold" font-size="20" fill="#000000"
|
||||
stroke="#ffffff" stroke-width="2.0" />
|
||||
stroke="#ffffff" stroke-width="2.0" priority="0"/>
|
||||
</rule>
|
||||
</rule>
|
||||
|
||||
|
||||
@ -982,19 +982,19 @@
|
||||
<rule e="node" k="place" v="*">
|
||||
<rule e="node" k="*" v="suburb|town|village">
|
||||
<caption k="name" font-size="20" fill="#eeeeee"
|
||||
stroke="#000020" stroke-width="4.0" />
|
||||
stroke="#000020" stroke-width="4.0" priority="2"/>
|
||||
</rule>
|
||||
<rule e="node" k="*" v="island" zoom-min="10">
|
||||
<caption k="name" font-style="bold" font-size="20" fill="#ffffff"
|
||||
stroke="#ffffff" stroke-width="1.0" />
|
||||
stroke="#ffffff" stroke-width="1.0" priority="1"/>
|
||||
</rule>
|
||||
<rule e="node" k="*" v="city">
|
||||
<caption k="name" font-style="bold" font-size="22" fill="#ffffff"
|
||||
stroke="#002020" stroke-width="4.0" />
|
||||
stroke="#002020" stroke-width="4.0" priority="1"/>
|
||||
</rule>
|
||||
<rule e="node" k="*" v="country">
|
||||
<caption k="name" font-size="22" fill="#ffffff"
|
||||
stroke="#000000" stroke-width="2.0" />
|
||||
stroke="#000000" stroke-width="2.0" priority="0"/>
|
||||
</rule>
|
||||
</rule>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user