Commit Graph

7 Commits

Author SHA1 Message Date
alro65 aa1b93c7a8 feat: simplify range-daymark to concentric triangles; preserve land cache
map.js — _encRangeDaymarkCanvas:
  Remove tripod legs, hub ring and mast. Symbol is now two clean
  concentric triangles pointing up: outer WHITE + inner BLACK,
  matching the standard IALA dayboard. Optional light flare at apex
  if the feature has LITCHR. No extra structures.

chart_manager.py — _build_cache:
  Don't overwrite existing land/hazard/zone GeoJSON files with an
  empty result when the .000 has no LNDARE/OBSTRN/ZONBND layer.
  Preserves hand-built or legacy cache data for custom charts
  (e.g. Barranquilla built from nav-aids-only CSV).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 16:19:01 -04:00
alro65 296c6c1ace 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>
2026-04-30 16:14:27 -04:00
alro65 acd3330bcd fix: _h2r parses rgb() strings to prevent NaN in canvas gradients
_darken3D / _lighten3D return 'rgb(r,g,b)' CSS strings.
When those values were passed as colList to drawCylinder/drawSphere,
_cylGrad called _lighten3D(col) → _h2r('rgb(...)') → parseInt('rg',16)=NaN,
causing addColorStop to throw and killing ALL pillar/tower/sphere buoy symbols.

Fix: _h2r now detects the 'rgb(' prefix and extracts the three integers
via regex before falling through to the existing hex path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 16:00:14 -04:00
alro65 a64a5eb735 fix(band-zoom): restaura maxZoom originales — US1GC09M ocultaba boyas Miami
El commit anterior removia los maxZoom de BAND_ZOOM_RANGES creyendo que
afectaba a BARRANQUILLA. En realidad BARRANQUILLA es band=0 (cell_id no
matchea el patron IHO) y siempre fue visible.

Sin maxZoom, US1GC09M (Overview, band-1, 549 features del Golfo) aparecia
en zoom 11 sobre Miami. Con declutter=true, sus 549 features competian con
las de US4FL/US5FL y ocultaban casi todo por collision detection.

Fix: restaurar exactamente los valores de v1-base para bands 1-4.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 15:42:43 -04:00
alro65 b92a3db523 fix(band-zoom): quita maxZoom cutoffs — Barranquilla (CO1CO01M=band1) desaparecia a zoom>10
La celda CO1CO01M es band-1 por convencion IHO (CO=Colombia, 1=Overview).
Con maxZoom=10 para band-1, la carta desaparecia completamente a zoom>10.

Solucion: todas las bandas tienen maxZoom=24. La logica _recomputeHiddenCells
(que ya maneja solo cuando una celda de mayor resolucion domina el viewport)
se encarga de ocultar las celdas de menor resolucion cuando hay una mejor.
Esto funciona para NOAA Miami (band-1 se oculta cuando band-5 cubre 40%+)
y para Barranquilla (band-0/1, sin rival, siempre visible a cualquier zoom).
2026-04-30 14:10:36 -04:00
alro65 293b0c45ef fix(data): light info (LITCHR/range/height) en boyas y balizas de orilla
frontend/js/map.js:
- Reemplaza merge exacto por merge de proximidad (~50m) en loadChartFeatures
  para capturar pares LIGHTS/BOYLAT con coordenadas no exactamente iguales
- Guard null-canvas en encStyle con fallback visible + console.warn
- Mejora JS de debug: log layer/aidType cuando usa fallback

backend/services/chart_manager.py:
- Expande extraccion de light_desc a category buoy+beacon+landmark
  (antes solo BOYLAT/BOYCAR; BCNLAT/BCNWTW/LNDMRK perdian LITCHR silenciosamente)
2026-04-30 13:55:08 -04:00
alro65 8edb425c24 v1-base: estado funcional al 2026-04-30 — buoys 3D, beacons 3D, enfilaciones, land-clip, buoy light merge 2026-04-30 13:50:01 -04:00