fix: revert BCNLAT to 3D tripod; increase icon scale +30%

- 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 <noreply@anthropic.com>
This commit is contained in:
2026-04-30 16:14:27 -04:00
parent acd3330bcd
commit 296c6c1ace
+2 -2
View File
@@ -1664,8 +1664,8 @@ function encStyle(feature, resolution) {
// Compute zoom from resolution (deterministic, no map object access needed). // Compute zoom from resolution (deterministic, no map object access needed).
// OL WebMercator: resolution ≈ 156543 / 2^zoom → zoom = log2(156543/res) // OL WebMercator: resolution ≈ 156543 / 2^zoom → zoom = log2(156543/res)
const _zr = resolution ? Math.log2(156543.03392 / Math.max(resolution, 0.001)) : 14; 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. // Scale: 0.29 at zoom 7, 0.65 at zoom 14+ — ~30 % larger than before.
const iconScale = Math.max(0.22, Math.min(0.50, 0.22 + (_zr - 7) * 0.04)); const iconScale = Math.max(0.29, Math.min(0.65, 0.29 + (_zr - 7) * 0.052));
return new ol.style.Style({ return new ol.style.Style({
image: new ol.style.Icon({ image: new ol.style.Icon({