From c9901e606cfc7b5f36dfe93d8e3f0a4c27c70213 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Sun, 3 Nov 2013 16:29:10 +0100 Subject: [PATCH] Update Map rendering types usage --- OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);