Skip to content

Commit

Permalink
Merge pull request #26 from charliemcgrady/cdk-ecr
Browse files Browse the repository at this point in the history
Add missing attributes to visible land-cover features
  • Loading branch information
bdon authored Sep 23, 2024
2 parents 10c3577 + 4a04017 commit 75ee856
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions profiles/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ public void processFeature(SourceFeature source, FeatureCollector features) {
OvertureProfile.addFullTags(source, feature, MAXZOOM);
} else if (layer.equals("land_cover")) {
var cartography = source.getStruct("cartography");
var minZoom = cartography.get("min_zoom").asInt();
feature.setMaxZoom(cartography.get("max_zoom").asInt());
feature.setMinZoom(cartography.get("min_zoom").asInt());
OvertureProfile.addFullTags(source, feature, MAXZOOM);
feature.setMinZoom(minZoom);
OvertureProfile.addFullTags(source, feature, minZoom);
} else if (layer.equals("water")) {
int minzoom = 13;
if (source.isPoint()) {
Expand Down

0 comments on commit 75ee856

Please sign in to comment.