Skip to content

v4.0.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@nagix nagix released this 03 Aug 06:16

Features and improvements

  • Unify train, flight and bus data sources into the dataSources option, and add Map#addDataSource() / Map#removeDataSource() to manage them at runtime
  • Load the bundled map style and localization dictionaries from an assets folder relative to the script, so CDN and self-hosted setups work without a separate data server
  • Ship a dedicated CommonJS build as main, add ESM source maps, and drop the development UMD build
  • Overhaul 3D layer lighting: derive it from the Mapbox lights (gamma-correct), animate the sun with throttled updates, and add brightness-based distance fog to the ThreeLayer and Tile3DLayer
  • Add the light event and Map#getLight() to read the current directional/ambient lights and brightness
  • Handle polar day and night, ramp up the twilight directional light, and warm the sunset ambient color
  • Set the time-based lights and sky before the first frame to avoid a color flash
  • Add a "Share this station" button, with an open/close animation on the share panel
  • Allow initializing the map with no data by omitting dataUrl
  • Determine the clock’s time zone from the loaded data (Japan Standard Time, or a GTFS feed’s agency_timezone) instead of the map center
  • When the gtfsurl parameter is set, display only that GTFS dataset instead of the default Tokyo data, and set the clock to its local time zone

Data Updates

  • Add the Open Data Challenge for Public Transportation 2026 data source

Bug fixes

  • Fix FontAwesome icons being clipped by their viewBoxes
  • Fix the map cursor by reading the dynamic cursor style from the deck.gl canvas
  • Avoid zero-height data textures when the data is empty