Skip to content

Commit 3f75fea

Browse files
committed
fix tests
1 parent 7334643 commit 3f75fea

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void processLandcover(SourceFeature sf, FeatureCollector features) {
4949
Integer sortKey = sortKeyMapping.getOrDefault(daylightClass, 6);
5050

5151
features.polygon(LAYER_NAME)
52-
.setId(1 + sortKey)
52+
.setId(1L + sortKey)
5353
.setAttr("kind", kind)
5454
.setZoomRange(0, 7)
5555
.setSortKey(sortKey)

tiles/src/test/java/com/protomaps/basemap/layers/EarthTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ void cliff() {
4141
void testNe() {
4242
assertFeatures(15,
4343
List.of(Map.of("kind", "earth",
44+
"_id", 1L,
4445
"_minzoom", 0,
4546
"_maxzoom", 4)),
4647
process(SimpleFeature.create(

tiles/src/test/java/com/protomaps/basemap/layers/LandcoverTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class LandcoverTest extends LayerTest {
2424
})
2525
void simple(String daylightClassString, String expectedString, Integer expectedSortKey) {
2626
assertFeatures(7,
27-
List.of(Map.of("kind", expectedString, "_sortkey", expectedSortKey)),
27+
List.of(Map.of("kind", expectedString, "_sortkey", expectedSortKey, "_id", 1L + expectedSortKey)),
2828
process(SimpleFeature.create(
2929
newPolygon(0, 0, 0, 1, 1, 1, 0, 0),
3030
new HashMap<>(Map.of("class", daylightClassString)),

0 commit comments

Comments
 (0)