From 999097fe07902717426e3db62811a5500fe318dc Mon Sep 17 00:00:00 2001 From: Simon Dalvai Date: Thu, 7 Mar 2024 10:11:30 +0100 Subject: [PATCH] map: enable clustering again and add OpenDataHub.com attribution --- src/main/webapp/map.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/map.js b/src/main/webapp/map.js index 29067d8..e943f99 100644 --- a/src/main/webapp/map.js +++ b/src/main/webapp/map.js @@ -8,8 +8,8 @@ async function map_start_promise() { let autorefresh_functions = [] let unsee_functions = [] - var disableClusteringZoomLevel = 1; - var clusterDistance = 1; + var disableClusteringZoomLevel = 18; + var clusterDistance = 40; var clusterNumberIconsCache = {}; startAutoRefresh(); @@ -49,7 +49,7 @@ async function map_start_promise() { } else { sources[sources.length] = new ol.source.OSM({ attributions: [ - 'Maps © Thunderforest, Data © OpenStreetMap contributors' + 'OpenDataHub.com | Maps © Thunderforest, Data © OpenStreetMap contributors' ], url: mapTileURLs[i][1] + env.THUNDERFOREST_MAP_API_KEY })