Skip to content

v0.6.1

Compare
Choose a tag to compare
@bcamper bcamper released this 17 Mar 23:13
· 1955 commits to master since this release

New Features

  • Feature selection:

    • The names of the matching layers for each feature (fully qualified with . notation) are now returned with the selection object, as selection.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.
  • 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 and normal blocks are always executed, regardless of the lighting 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 (with scene.updateConfig() and/or scene.rebuild()). (See Tangram explorer demo for an example.)