Skip to content

v0.17.2

Compare
Choose a tag to compare
@bcamper bcamper released this 06 Feb 17:57
· 188 commits to master since this release

Bug Fixes

  • Fix raster sampling at explicit pixel locations with sampleRasterAtPixel(), when using with mixed vector/raster tile sizes. 98c528c
    • Affects e.g. 256px vector tiles masking 512px raster tiles, and/or when using the zoom_offset parameter (which implicitly changes tile size).
  • Fix shader uniforms that are arrays of vectors. 495a090
    • Example:
      shaders:
        uniforms:
          u_colors:
            - [0.5, 0.5, 0.5] # gray
            - [1, 0, 0] # red
            - [1, 0, 1] # purple
            - [0, 1, 1] # yellow
      
    • Note: prior fix in v0.16.0 was flawed.
  • Use rollup commonjs plugin ignoreGlobal option to fix a minification error when bundling Tangram with Webpack. de04804
    • Prior to this fix, bundling with Webpack in production mode (with minification) required a modified Webpack config, with the noParse option applied to Tangram. This is no longer necessary, allowing for simpler builds without special config. Also see #699.
  • scene.queryFeatures() will now return empty feature set if the scene isn't initialized (e.g. has not been loaded yet, is still in process of loading, etc.). 5d94514
  • Fix view tile retention for overzoomed tiles (not a visible bug, but efficiency improvement to match intended internal tile caching). 7c19438

Improvements

  • Adds a first property to the first view_complete event after each scene load (e.g. this value resets after a scene.load()). a30ca53
    • Example:
      scene.subscribe({ view_complete: ({ first }) => console.log('First view complete event?', first) });
  • Copy existing tile source data for overzoomed tiles when possible; skips redundant network request and parsing (in practice these requests were almost always cached, but parsing computation was not). 50f587b