v0.6.1
New Features
-
Feature selection:
- The names of the matching
layers
for each feature (fully qualified with.
notation) are now returned with the selection object, asselection.feature.layers
. See #274. Example:
scene.getFeatureAt(pixel).then(function(selection) { if (selection.feature) { console.log(selection.feature.layers); } }); => ["roads:major_road:trunk_primary:early", "roads:major_road:trunk_primary:routes:early", "roads:major_road:trunk_primary:labels-trunk_primary-z13"]
- Additional information about the tile a feature was built for is also now included, as
selection.feature.tile
. See 3e03353.
- The names of the matching
-
Shader blocks: the v0.6.0 shader block changes revealed compatibility issues with existing styles and limitations on procedurally generated textures and custom lighting setups. This logic has been revised so that the
color
andnormal
blocks are always executed, regardless of thelighting
mode. See #271.
Bug Fixes
- Fix incorrectly scaled max label repeat distance logic on overzoomed tiles, preventing some valid labels more than 256px apart from being placed.
- Fix regressions in tile cancelation logic that caused visual artifacts (missing tiles) and/or console errors in applications that modified the
scene.config
object programmatically and/or rapidly rebuilt the scene (withscene.updateConfig()
and/orscene.rebuild()
). (See Tangram explorer demo for an example.)