Skip to content

Commit

Permalink
Fix university office/amenity collision (to match OSM PR 1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanecak-maptiler committed Jan 10, 2024
1 parent ad06ec4 commit 802046f
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 802046f

Please sign in to comment.