From 296c6c1acef149b8cb621e3159eb24e6c16871c6 Mon Sep 17 00:00:00 2001 From: aerom Date: Thu, 30 Apr 2026 16:14:27 -0400 Subject: [PATCH] fix: revert BCNLAT to 3D tripod; increase icon scale +30% MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BCNLAT symbol back to tripod+mast+topmark (now works without NaN thanks to the _h2r rgb() fix in the previous commit) - Icon scale range 0.22–0.50 → 0.29–0.65 (~30% larger at all zooms) Co-Authored-By: Claude Sonnet 4.6 --- frontend/js/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/map.js b/frontend/js/map.js index 6b93531..27bc37f 100644 --- a/frontend/js/map.js +++ b/frontend/js/map.js @@ -1664,8 +1664,8 @@ function encStyle(feature, resolution) { // Compute zoom from resolution (deterministic, no map object access needed). // OL WebMercator: resolution ≈ 156543 / 2^zoom → zoom = log2(156543/res) const _zr = resolution ? Math.log2(156543.03392 / Math.max(resolution, 0.001)) : 14; - // Scale: 0.22 at zoom 7, 0.50 at zoom 14+ — half the original canvas size. - const iconScale = Math.max(0.22, Math.min(0.50, 0.22 + (_zr - 7) * 0.04)); + // Scale: 0.29 at zoom 7, 0.65 at zoom 14+ — ~30 % larger than before. + const iconScale = Math.max(0.29, Math.min(0.65, 0.29 + (_zr - 7) * 0.052)); return new ol.style.Style({ image: new ol.style.Icon({