Skip to content

v0.9.0

Compare
Choose a tag to compare
@bcamper bcamper released this 03 Aug 22:32
· 1507 commits to master since this release

Enhancements

  • Scenes can be loaded from .zip-file bundles (#358)

    • Allows all scene resources (imported scene YAMLs, images, and fonts) to be consolidated into one package for easier distribution and decreased network overhead.
    • Zip bundles must contain a single scene YAML file at the top-level directory, to act as the "root scene".
  • Improved handling of points w/attached text labels:

    • Will only render by default if both the text and point pass collision (#349).
      • Text can be made optional with optional flag, allowing point to render with or without text, as collision allows:
      draw:
         points:
            ...
            text:
               optional: true
               ...
    
    • Multiple anchor placement candidates for substantial increase in the number of labels placed (#351).
      • anchor can accept an array of possible placements, evaluated in priority order.
      • Default is now: anchor: [bottom, top, right, left]
      • Example of all anchor candidates for maximum label placement (speed/# of labels trade-off): anchor: [bottom, top, right, left, bottom-right, bottom-left, top-right, top-left]
    • Attached text and point objects will not collide with each other (enables rendering of highway shields and similar symbols).
  • Incremental tile build (#367)

    • Polygon and line features will display more quickly, while label rendering and collision for point and text features completes in the background.
    • Labels for new tile areas will fade-in to provide a gentler transition (note, not all labels are faded in, such as higher zoom tiles when replacing lower zooms, to avoid label "flicker" from rapid fade out/in).
  • Improved proxy tile behavior for lines

    • Adjust line width based on zoom level, to prevent proxied lines from being either too small or too big.

Bug Fixes

  • Scene global properties can be set to "false-y" values such as null.
  • Fix map size initialization issue between Leaflet + Tangram, avoiding initial single-tile render.
  • Fix scaling of camera vanishing_point (#372).
  • Fix behavior when 0px text stroke is specified (#370).
  • Add try/catch and error message for function-based filters (#364).

Internal

  • Fonts: use native FontFace API when available to load fonts
  • Add debug drawing options for text label collision and texture boxes.