diff --git a/OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java b/OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java index c18c04a5f1..9e8533a03e 100644 --- a/OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java +++ b/OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java @@ -110,8 +110,10 @@ public class EntityParser { boolean relation = entity instanceof Relation; Collection 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);