Fix relation tags
This commit is contained in:
parent
1ba490179c
commit
284f709087
2 changed files with 5 additions and 5 deletions
|
@ -74,9 +74,9 @@ public class BinaryInspector {
|
|||
// "-zoom=15",
|
||||
// "-bbox=1.74,51.17,1.75,51.16",
|
||||
// "-vstats",
|
||||
"/Users/victorshcherb/osmand/maps/Synthetic_test_rendering.obf"
|
||||
// "/Users/victorshcherb/osmand/maps/Synthetic_test_rendering.obf"
|
||||
// "/Users/victorshcherb/osmand/maps/Netherlands_europe_2.road.obf"
|
||||
// "/Users/victorshcherb/osmand/maps/Map.obf"
|
||||
"/Users/victorshcherb/osmand/maps/Map.obf"
|
||||
});
|
||||
} else {
|
||||
in.inspector(args);
|
||||
|
|
|
@ -153,15 +153,15 @@ public abstract class MapRenderingTypes {
|
|||
return a;
|
||||
}
|
||||
|
||||
protected MapRulType getRuleType(String tag, String val, boolean poi) {
|
||||
protected MapRulType getRuleType(String tag, String val, boolean poi, boolean map) {
|
||||
Map<String, MapRulType> types = getEncodingRuleTypes();
|
||||
tag = lc(tag);
|
||||
val = lc(val);
|
||||
MapRulType rType = types.get(constructRuleKey(tag, val));
|
||||
if (rType == null || (!rType.isPOI() && poi) || (!rType.isMap() && !poi)) {
|
||||
if (rType == null || (!rType.isPOI() && poi) || (!rType.isMap() && map)) {
|
||||
rType = types.get(constructRuleKey(tag, null));
|
||||
}
|
||||
if(rType == null || (!rType.isPOI() && poi) || (!rType.isMap() && !poi)) {
|
||||
if(rType == null || (!rType.isPOI() && poi) || (!rType.isMap() && map)) {
|
||||
return null;
|
||||
} else if(rType.isAdditional() && rType.tagValuePattern.value == null) {
|
||||
MapRulType parent = rType;
|
||||
|
|
Loading…
Reference in a new issue