Skip to content

v0.10.0

Choose a tag to compare

@bcamper bcamper released this 15 Sep 13:43

New + Improved Functionality

  • Labels
    • Articulated labels #360
      • For labels along a line (e.g. road labels), splits the label on a space and angles the components to better follow the underlying path. This is an initial step, with future releases providing further improvements.
        screen shot 2016-09-14 at 10 52 18 am
    • Add a max_lines parameter and ellipsis truncation to prevent excessively tall labels #396
      • Defaults to max_lines: 5

        screen shot 2016-09-14 at 10 55 19 am
    • Change generated polygon centroids label_placement value to true #377
  • Data sources
    • Tiled data sources can specify a min/max display zooms and/or bounding box to limit tile visibility #394

      • min_display_zoom: tiles will not be requested or displayed below this zoom
      • max_display_zoom: tiles will not be requested or displayed above this zoom
      • bounds: tiles will not be requested or displayed outside of this bounding box, specified as latitude/longitude in [w, s, e, n] format.
      • Example:
      mapzen:
          type: TopoJSON
          url: https://vector.mapzen.com/osm/all/{z}/{x}/{y}.topojson
          min_display_zoom: 9
          max_display_zoom: 18
          bounds: [-74.1274, 40.5780, -73.8004, 40.8253] # [w, s, e, n]
      
    • Support added for TMS tiled data sources #401

      • The source definition can set tms: true
  • Filters
    • Add ability to filter geometry properties by zoom-independent screen area #395
      • This is done through a new px2 unit type that can be applied to range filters, e.g.:
        • filter: { area: { min: 500px2 } }
        • This example only shows features that cover a 500 pixel screen area at the current zoom level. Note that to use this feature, the property (area in this example) must already be in square mercator meter units. Mapzen Vector Tiles include such properties for many polygon features.
    • Add error handling for JS function filter values #373
  • Misc
    • Improved default lighting #407
      • The previous default provided 100% omnidirectional diffuse light. This was a poor default for extruded geometry such as buildings, which displayed as silhouettes with no depth. The new default (when no lights are defined in the scene) is a directional light that maintains 100% illumination for ground plane objects, with typical flat shading for extruded objects.
    • Video capture #408
      • To complement Tangram's existing screenshot capability, new methods have been added for capturing video clips of Tangram maps using the MediaRecorder API. The new Scene.startVideoCapture() and Scene.stopVideoCapture() methods will capture a WebM-encoded video stream. This feature is currently only available in Chrome and Firefox. Also see here for more info.
    • Allow dashed line patterns to use fractional widths #404 #355
    • CSS Color Level 4 (a fancy way of saying "support rebeccapurple") #389
    • For opaque blending, multiply material's alpha channel into its RGB (415f32c)

Bug Fixes

  • Fix lighting handling of alpha channel #407
  • Fix points angle parameter to be interpreted in degrees instead of radians (regression)
  • Fix serialization of JS functions added to scene config when a load event fires

Internal

  • Upgrade build process to use Babel 6 #387