From 096e0a371ecf8a2a0452375946f4640b54067850 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 6 May 2024 12:48:06 +0300 Subject: [PATCH] Adjust overlap of markers --- static/js/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/map.js b/static/js/map.js index 8aaea69..ae6855d 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -34,7 +34,7 @@ function build_map(map_id, coordinates, routes) { var offset_lines = []; function getIconBounds(latlng) { - let iconSize = 30; // Assuming the icon size as a square of 30x30 pixels + let iconSize = 20; // Assuming the icon size as a square if (!latlng) return null; let pixel = map.project(latlng, map.getZoom()); let sw = map.unproject([pixel.x - iconSize / 2, pixel.y + iconSize / 2], map.getZoom());