Skip to content

Releases: tangrams/tangram

v0.3.2

30 Sep 15:53
Compare
Choose a tag to compare
  • Fixes handling of standalone (non-tiled) data sources (incorrect point and polygon decoding)
  • Reduce Leaflet flicker when zooming with scroll wheel
  • Data sources: pass extra_data parameter directly to user-defined transform functions altering source data
  • Additional debug info in log when tile load fails (improves debugging JS functions in scene file)
  • Demo:
    • Upgraded to latest Leaflet 1.0 beta
    • Added user-defined transform data source example (commented out)

v0.3.1

22 Sep 21:20
Compare
Choose a tag to compare

Fixes a regression in URL path expansion (from scene loading refactor) that caused some resources such as textures to not load.

v0.3.0

18 Sep 20:53
Compare
Choose a tag to compare
  • Add offsets for points, and for labels of point and line features (offset property)
    • Points, and point labels: offset: [8px, 0px]: offset label 8 pixels to the right
    • Line labels: offset: [0px, -12px]: offset label 12 pixels above the line (offset is relative to line orientation)
  • Add ability for label priority to be computed via JS function
    • e.g. to tie priority to a feature property: priority: function() { return feature.priority }
  • Add a $layer property for filtering features based on which source layer they came from
    • For use with multi-layer syntax, e.g. data: { source: ..., layer: [layerA, layerB] }, filter: { $layer: layerA }
  • Update text style's font syntax to use multiple properties
    • typeface property is replaced with family, size, style, weight
    • Legacy support for typeface remains in this version (will be deprecated)
    • See #188 for more info. Also matches Tangram ES syntax
  • Fix additional "dirty" text halos not covered in 0.2.1 (caused by premultiplied alpha issue between Canvas text and WebGL texture)
  • Internally track additional metadata about style inheritance, provided in errors/warnings and meant to besurfaced in clients such as Tangram Play
  • Add option to specify different base URL for scene resources, useful for cases like Tangram Play where scene content is edited locally but images and other resources are still hosted elsewhere
  • Fixes freeze bug where no Leaflet max zoom was specified
  • Fixes freeze bug when style was mixed into itself

v0.2.1

21 Aug 17:04
Compare
Choose a tag to compare
  • Use Oriented Bounding Boxes (OBB) for label collision, significantly increasing the number of labels on screen (typically about 100% increase)
  • Add error/warning events that clients of the library can subscribe to (initial use case is Tangram Play, for error handling in UI)
  • Add sprite_default parameter (allows for generic POI icons, etc.)
  • Enforce winding order on non-tiled data sources (with option to also enforce on tiled data sources if desired, off by default)
  • Fix issue preventing multiple text-based styles from rendering
  • Remove "dirty" text halos (correct for premultiplied alpha)
  • Reduce max global zoom to 18 by default (over-zooming will apply beyond that)
  • Reduce unnecessary GL state changes for better performance
  • Improve handling of standalone TopoJSON sources with a single data layer (like other data sources, no need to specify layer name anymore when only one)
  • Fix issue with lighting and blend properties in mixed styles
  • Re-create all textures on scene load (fixes Tangram Play bug where texture URLs change were not reflected)

v0.2.0

24 Jul 20:21
Compare
Choose a tag to compare
  • Support non-tiled GeoJSON or TopoJSON objects (automatically tiled tiled client-side w/geojson-vt module). Simplify GeoJSONTiles and TopoJSONTiles source types into unified GeoJSON and TopoJSON types; library will detect tiled vs. non-tiled sources via URL pattern.
  • Add 'inlay' blend mode.
  • Add ability for render styles to enable GL extensions.
  • Scene layers can specify multiple data source layers to be combined.
  • Add 'priority' property for text/label style.
  • Reduce tile memory usage by ~45% by packing vertex buffer types (floats become shorts or bytes, etc.).
  • Allow scenes to be loaded from blob URLs (such as for Tangram Play: https://github.com/tangrams/tangram-play/).
  • Recover gracefully from scene load failures, revert to last valid scene config (also for Tangram Play).
  • Fix bug where multiple render loops could spawn in parallel.
  • Fix various IE11 bugs.

v0.1.2

29 May 15:55
Compare
Choose a tag to compare
  • Wrap tiles around antimeridian
  • Properly apply styles at all zoom levels when mixing data sources with different max zooms (#156)
  • Improved leaflet/tangram sync (eliminates some "drift" between the two)
  • Fix zoom 0 view and null lat/lng handling

v0.1.1

15 May 23:38
Compare
Choose a tag to compare
  • Fix URL resolution for IE11
  • Fix default alpha for function-based colors
  • Fix cases where Leaflet background could obscure Tangram canvas
  • Misc small improvements

Initial release

12 May 02:51
Compare
Choose a tag to compare

First public release (!). See the README and wiki for more details. Demos and more at https://mapzen.com/tangram.