Releases: tangrams/tangram
Releases · tangrams/tangram
v0.3.3
- Modifications to scroll-wheel zoom behavior to fix issues with animated styles in Chrome
- Make
u_device_pixel_ratio
uniform available in thepoints
vertex shader - Fix alpha for
points
drawn withblend: inlay
- Fix issue where
px
units caused parsing error with text stroke width - Fix issues with hyphens in style names
- Fix issues with style trying to mix into itself
v0.3.2
- 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-definedtransform
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
v0.3.0
- 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)
- Points, and point labels:
- 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 }
- e.g. to tie priority to a feature property:
- 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 }
- For use with multi-layer syntax, e.g.
- Update text style's font syntax to use multiple properties
typeface
property is replaced withfamily
,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
- 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
andblend
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
- Support non-tiled GeoJSON or TopoJSON objects (automatically tiled tiled client-side w/geojson-vt module). Simplify
GeoJSONTiles
andTopoJSONTiles
source types into unifiedGeoJSON
andTopoJSON
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
v0.1.1
Initial release
First public release (!). See the README and wiki for more details. Demos and more at https://mapzen.com/tangram.