Fix map creator
This commit is contained in:
parent
647a863d16
commit
755b56a97b
1 changed files with 5 additions and 4 deletions
|
@ -620,16 +620,17 @@ 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;
|
||||
|
||||
rtype.tagValuePattern = new TagValuePattern(poiTag, null);
|
||||
return registerRuleType(rtype);
|
||||
if (poiTag != null) {
|
||||
rtype.tagValuePattern = new TagValuePattern(poiTag, null);
|
||||
return registerRuleType(rtype);
|
||||
}
|
||||
}
|
||||
return rtype;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue