Update Map rendering types usage
This commit is contained in:
parent
dfceb65104
commit
c9901e606c
1 changed files with 3 additions and 1 deletions
|
@ -110,8 +110,10 @@ public class EntityParser {
|
||||||
boolean relation = entity instanceof Relation;
|
boolean relation = entity instanceof Relation;
|
||||||
Collection<String> keySet = entity.getTagKeySet();
|
Collection<String> keySet = entity.getTagKeySet();
|
||||||
if (!keySet.isEmpty()) {
|
if (!keySet.isEmpty()) {
|
||||||
|
boolean purerelation = relation && !"multipolygon".equals(entity.getTag("type"));
|
||||||
for (String t : keySet) {
|
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) {
|
if (type != null) {
|
||||||
String subtype = renderingTypes.getAmenitySubtype(t, entity.getTag(t));
|
String subtype = renderingTypes.getAmenitySubtype(t, entity.getTag(t));
|
||||||
Amenity a = parseAmenity(entity, type, subtype);
|
Amenity a = parseAmenity(entity, type, subtype);
|
||||||
|
|
Loading…
Reference in a new issue