v0.10.0
New + Improved Functionality
- Labels
- 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 zoommax_display_zoom: tiles will not be requested or displayed above this zoombounds: 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
- The source definition can set
-
- Filters
- Add ability to filter geometry properties by zoom-independent screen area #395
- This is done through a new
px2unit 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 (
areain this example) must already be in square mercator meter units. Mapzen Vector Tiles include such properties for many polygon features.
- This is done through a new
- Add error handling for JS function
filtervalues #373
- Add ability to filter geometry properties by zoom-independent screen area #395
- 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
lightsare defined in the scene) is a directional light that maintains 100% illumination for ground plane objects, with typical flat shading for extruded objects.
- 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
- 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()andScene.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.
- 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
- Allow dashed line patterns to use fractional widths #404 #355
- CSS Color Level 4 (a fancy way of saying "support
rebeccapurple") #389 - For
opaqueblending, multiplymaterial's alpha channel into its RGB (415f32c)
- Improved default lighting #407
Bug Fixes
- Fix lighting handling of alpha channel #407
- Fix points
angleparameter to be interpreted in degrees instead of radians (regression) - Fix serialization of JS functions added to scene config when a
loadevent fires
Internal
- Upgrade build process to use Babel 6 #387

