Skip to content

Commit a67cb3c

Browse files
committed
Use LAYER_NAME
1 parent 223acb0 commit a67cb3c

File tree

1 file changed

+7
-7
lines changed
  • tiles/src/main/java/com/protomaps/basemap/layers

1 file changed

+7
-7
lines changed

tiles/src/main/java/com/protomaps/basemap/layers/Water.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public String name() {
2727
}
2828

2929
public void processPreparedOsm(SourceFeature ignoredSf, FeatureCollector features) {
30-
features.polygon(this.name())
30+
features.polygon(LAYER_NAME)
3131
.setId(0)
3232
.setAttr("kind", "ocean")
3333
.setAttr("sort_rank", 200)
@@ -66,7 +66,7 @@ public void processNe(SourceFeature sf, FeatureCollector features) {
6666
}
6767

6868
if (!kind.isEmpty() && sf.hasTag("min_zoom")) {
69-
features.polygon(this.name())
69+
features.polygon(LAYER_NAME)
7070
// Core Tilezen schema properties
7171
.setAttr("kind", kind)
7272
.setAttr("sort_rank", 200)
@@ -79,7 +79,7 @@ public void processNe(SourceFeature sf, FeatureCollector features) {
7979
if (sourceLayer.equals("ne_10m_lakes")) {
8080
var minZoom = sf.getLong("min_label");
8181
if (!kind.isEmpty() && sf.hasTag("min_label") && sf.hasTag("name")) {
82-
var waterLabelPosition = features.pointOnSurface(this.name())
82+
var waterLabelPosition = features.pointOnSurface(LAYER_NAME)
8383
.setAttr("kind", kind)
8484
.setAttr("min_zoom", minZoom + 1)
8585
.setZoomRange(sf.getString("min_label") == null ? themeMinZoom :
@@ -148,7 +148,7 @@ public void processOsm(SourceFeature sf, FeatureCollector features) {
148148
kind = "swimming_pool";
149149
}
150150

151-
var feature = features.polygon(this.name())
151+
var feature = features.polygon(LAYER_NAME)
152152
// Core Tilezen schema properties
153153
.setAttr("kind", kind)
154154
.setAttr("sort_rank", 200)
@@ -190,7 +190,7 @@ public void processOsm(SourceFeature sf, FeatureCollector features) {
190190
}
191191
}
192192

193-
var feat = features.line(this.name())
193+
var feat = features.line(LAYER_NAME)
194194
.setId(FeatureId.create(sf))
195195
.setAttr("kind", kind)
196196
// Used for client-side label collisions
@@ -239,7 +239,7 @@ public void processOsm(SourceFeature sf, FeatureCollector features) {
239239
minZoom = 3;
240240
}
241241

242-
var feat = features.point(this.name())
242+
var feat = features.point(LAYER_NAME)
243243
.setId(FeatureId.create(sf))
244244
.setAttr("kind", kind)
245245
// Used for client-side label collisions
@@ -331,7 +331,7 @@ public void processOsm(SourceFeature sf, FeatureCollector features) {
331331
nameMinZoom = 14;
332332
}
333333

334-
var waterLabelPosition = features.pointOnSurface(this.name())
334+
var waterLabelPosition = features.pointOnSurface(LAYER_NAME)
335335
// Core Tilezen schema properties
336336
.setAttr("kind", kind)
337337
.setAttr("kind_detail", kindDetail)

0 commit comments

Comments
 (0)