Skip to content

v6.2.5: Merge branch 'fix-map' into 'main'

Latest

Choose a tag to compare

@jirivrany jirivrany released this 01 Jun 13:34

fix: responsive tab map sizing and fit-to-bounds on initial load

  • Replace fixed 600px height on tab map with a dynamic CSS variable
    (--tab-map-height, 75vh default, 400px min) that recalculates on
    window resize and Bootstrap tab activation via shown.bs.tab
  • Call map.invalidateSize() on each resize to keep Leaflet in sync
  • Fit initial map view to object bounds (fitBounds) instead of a
    fixed zoom level; falls back to default CZ center when no objects
  • Fix site tab showing wrong zoom: bounds were computed from all
    network objects instead of the site's own segments; now passes
    a separate site-filtered dataset to _network_map_context for
    bounds calculation while keeping full data for client-side filtering
  • Bump version to 6.2.5