Skip to content

Commit c809cd1

Browse files
authored
Upgrade to planetiler 0.10.2 [#585] (#611)
* narrow sort key for places population levels to allow upgrade
1 parent 50ec832 commit c809cd1

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
Tiles 4.14.9
2+
------
3+
- upgrade to planetiler 0.10.2 [#585]
4+
- narrow resolution of places log(population) sort key levels to avoid running out of bits [#585]
5+
16
Tiles 4.14.8
7+
------
28
- fix US route network values [#518]
39

410
Tiles 4.14.7

tiles/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1010
<maven.compiler.source>21</maven.compiler.source>
1111
<maven.compiler.target>21</maven.compiler.target>
12-
<planetiler.version>0.10.1</planetiler.version>
12+
<planetiler.version>0.10.2</planetiler.version>
1313
<junit.version>5.10.0</junit.version>
1414
<mainClass>com.protomaps.basemap.Basemap</mainClass>
1515
<sonar.host.url>https://sonarcloud.io</sonar.host.url>

tiles/src/main/java/com/protomaps/basemap/Basemap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public String description() {
134134

135135
@Override
136136
public String version() {
137-
return "4.14.8";
137+
return "4.14.9";
138138
}
139139

140140
@Override

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static int getSortKey(double minZoom, int kindRank, long population, String name
210210
// Disabled to allow population log to have larger range
211211
//.thenByInt(populationRank, 15, 0)
212212
// Order DESCENDING (larger values win, Millbrea 40k wins over San Bruno 20k, both rank 7)
213-
.thenByLog(population, 40000000, 1, 100)
213+
.thenByLog(population, 40000000, 1, 65)
214214
// Order ASCENDING (shorter strings are better than longer strings for map display and adds predictability)
215215
.thenByInt(name == null ? 0 : name.length(), 0, 31)
216216
.get();

0 commit comments

Comments
 (0)