Update Map rendering types usage

This commit is contained in:
vshcherb 2013-11-03 16:29:10 +01:00
parent dfceb65104
commit c9901e606c

View file

@ -110,8 +110,10 @@ public class EntityParser {
boolean relation = entity instanceof Relation;
Collection<String> keySet = entity.getTagKeySet();
if (!keySet.isEmpty()) {
boolean purerelation = relation && !"multipolygon".equals(entity.getTag("type"));
for (String t : keySet) {
AmenityType type = renderingTypes.getAmenityType(t, entity.getTag(t), relation);
AmenityType type = purerelation? renderingTypes.getAmenityTypeForRelation(t, entity.getTag(t)):
renderingTypes.getAmenityType(t, entity.getTag(t));
if (type != null) {
String subtype = renderingTypes.getAmenitySubtype(t, entity.getTag(t));
Amenity a = parseAmenity(entity, type, subtype);