Fix map creator
This commit is contained in:
parent
647a863d16
commit
755b56a97b
1 changed files with 5 additions and 4 deletions
|
@ -620,17 +620,18 @@ public class MapRenderingTypes {
|
||||||
if (!Algorithms.isEmpty(parser.getAttributeValue("", "order"))) {
|
if (!Algorithms.isEmpty(parser.getAttributeValue("", "order"))) {
|
||||||
rtype.order = Integer.parseInt(parser.getAttributeValue("", "order"));
|
rtype.order = Integer.parseInt(parser.getAttributeValue("", "order"));
|
||||||
}
|
}
|
||||||
if (poiTag != null && poiCategory != null && poiCategory.length() > 0) {
|
if (poiCategory != null && poiCategory.length() > 0) {
|
||||||
rtype.poiCategory = AmenityType.getAndRegisterType(parser.getAttributeValue("", "poi_category"));
|
rtype.poiCategory = AmenityType.getAndRegisterType(parser.getAttributeValue("", "poi_category"));
|
||||||
rtype.poiSpecified = true;
|
rtype.poiSpecified = true;
|
||||||
rtype.relation = Boolean.parseBoolean(parser.getAttributeValue("", "relation"));
|
rtype.relation = Boolean.parseBoolean(parser.getAttributeValue("", "relation"));
|
||||||
rtype.poiWithNameOnly = Boolean.parseBoolean(parser.getAttributeValue("", "poi_with_name"));
|
rtype.poiWithNameOnly = Boolean.parseBoolean(parser.getAttributeValue("", "poi_with_name"));
|
||||||
rtype.poiPrefix = parser.getAttributeValue("", "poi_prefix");
|
rtype.poiPrefix = parser.getAttributeValue("", "poi_prefix");
|
||||||
rtype.onlyPoi = true;
|
rtype.onlyPoi = true;
|
||||||
|
if (poiTag != null) {
|
||||||
rtype.tagValuePattern = new TagValuePattern(poiTag, null);
|
rtype.tagValuePattern = new TagValuePattern(poiTag, null);
|
||||||
return registerRuleType(rtype);
|
return registerRuleType(rtype);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return rtype;
|
return rtype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue