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:
+2
-2
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user