Fix oneway issue 1165

This commit is contained in:
Victor Shcherb 2012-07-15 00:30:58 +02:00
parent aa0de671b5
commit f4b7748df9
3 changed files with 12 additions and 2 deletions

View file

@ -48,6 +48,12 @@ public class BinaryMapRouteReaderAdapter {
public RouteTypeRule(String t, String v) {
this.t = t.intern();
if("true".equals(v)) {
v = "yes";
}
if("false".equals(v)) {
v = "no";
}
this.v = v == null? null : v.intern();
analyze();
}
@ -101,7 +107,7 @@ public class BinaryMapRouteReaderAdapter {
type = ONEWAY;
if("-1".equals(v) || "reverse".equals(v)) {
intValue = -1;
} else if("1".equals(v) || "yes".equals(v) || "true".equals(v)) {
} else if("1".equals(v) || "yes".equals(v)) {
intValue = 1;
} else {
intValue = 0;

View file

@ -132,7 +132,7 @@ public class MapRenderingTypes {
tempList.clear();
tempList.add(nameRuleType);
boolean area = "yes".equals(e.getTag("area"));
boolean area = "yes".equals(e.getTag("area")) || "true".equals(e.getTag("area"));
Collection<String> tagKeySet = e.getTagKeySet();
for (String tag : tagKeySet) {

View file

@ -4,13 +4,17 @@
<!-- additional -->
<type tag="oneway" value="yes" minzoom="15" additional="true"/>
<type tag="oneway" value="true" target_value="yes" minzoom="15" additional="true"/>
<type tag="oneway" value="no" minzoom="15" additional="true"/>
<type tag="oneway" value="false" target_value="no" minzoom="15" additional="true"/>
<type tag="oneway" value="-1" minzoom="15" additional="true"/>
<type tag="oneway" value="reverse" target_value="-1" minzoom="15" additional="true"/>
<type tag="access" value="no" minzoom="15" additional="true"/>
<type tag="access" value="false" target_value="no" minzoom="15" additional="true"/>
<type tag="access" value="private" minzoom="15" additional="true"/>
<type tag="access" value="yes" minzoom="15" additional="true"/>
<type tag="access" value="true" target_value="yes" minzoom="15" additional="true"/>
<type tag="layer" value="0" minzoom="10" additional="true"/>