Fix map creator

This commit is contained in:
Victor Shcherb 2015-01-26 21:45:07 +01:00
parent 647a863d16
commit 755b56a97b

View file

@ -620,17 +620,18 @@ public class MapRenderingTypes {
if (!Algorithms.isEmpty(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.poiSpecified = true;
rtype.relation = Boolean.parseBoolean(parser.getAttributeValue("", "relation"));
rtype.poiWithNameOnly = Boolean.parseBoolean(parser.getAttributeValue("", "poi_with_name"));
rtype.poiPrefix = parser.getAttributeValue("", "poi_prefix");
rtype.onlyPoi = true;
if (poiTag != null) {
rtype.tagValuePattern = new TagValuePattern(poiTag, null);
return registerRuleType(rtype);
}
}
return rtype;
}