Skip to content

Commit

Permalink
Merge pull request #33 from phanecak-maptiler/omt3_15-zlw-university-…
Browse files Browse the repository at this point in the history
…office-bugfix

Fix university office/amenity collision
  • Loading branch information
phanecak-maptiler authored Jan 10, 2024
2 parents ad06ec4 + 802046f commit 00e9732
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/openmaptiles/layers/Poi.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ static int poiClassRank(String clazz) {
}

private String poiClass(String subclass, String mappingKey) {
// Special case subclass collision between office=university and amenity=university
if ("amenity".equals(mappingKey) && "university".equals(subclass)) {
return FieldValues.CLASS_COLLEGE;
}

subclass = coalesce(subclass, "");
return classMapping.getOrElse(Map.of(
"subclass", subclass,
Expand Down

0 comments on commit 00e9732

Please sign in to comment.