This is an automated email from the ASF dual-hosted git repository.
bchapuis pushed a commit to branch mbtiles-perf
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
The following commit(s) were added to refs/heads/mbtiles-perf by this push:
new 5b1b74af Remove boundaries at low zoom levels
5b1b74af is described below
commit 5b1b74af2213bf4801e7c5a5a035508471fc2280
Author: Bertil Chapuis <[email protected]>
AuthorDate: Tue Aug 22 21:57:54 2023 +0200
Remove boundaries at low zoom levels
---
.../src/main/java/org/apache/baremaps/utils/PostgresUtils.java | 2 +-
basemap/layers/boundary/tileset.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/baremaps-core/src/main/java/org/apache/baremaps/utils/PostgresUtils.java
b/baremaps-core/src/main/java/org/apache/baremaps/utils/PostgresUtils.java
index 4eda2e5e..fd85bbd7 100644
--- a/baremaps-core/src/main/java/org/apache/baremaps/utils/PostgresUtils.java
+++ b/baremaps-core/src/main/java/org/apache/baremaps/utils/PostgresUtils.java
@@ -64,9 +64,9 @@ public final class PostgresUtils {
throw new IllegalArgumentException("PoolSize cannot be inferior to 1");
}
HikariConfig config = new HikariConfig();
+ config.setPoolName("baremaps");
config.setJdbcUrl(url);
config.setMaximumPoolSize(poolSize);
- config.setMinimumIdle(poolSize);
logger.info("HikariConfig: {}", config);
return new HikariDataSource(config);
}
diff --git a/basemap/layers/boundary/tileset.js
b/basemap/layers/boundary/tileset.js
index 75525332..8529b222 100644
--- a/basemap/layers/boundary/tileset.js
+++ b/basemap/layers/boundary/tileset.js
@@ -13,7 +13,7 @@ export default {
id: 'boundary',
queries: [
{
- minzoom: 10,
+ minzoom: 13,
maxzoom: 20,
sql:
"SELECT id, tags, geom FROM osm_ways WHERE tags ? 'boundary'",