tangram-docs
tangram-docs copied to clipboard
Documentation for the Tangram map renderer
The docs state > The uniforms block allows shortcuts for declaring globally-accessible uniform variables, for use in the global, position, normal, color and filter blocks. Uniforms declared here may also...
https://github.com/tangrams/tangram-docs/blob/gh-pages/pages/draw.md#angle when returning a value for `angle` with a function, it looks like it expect radians, not degrees. ``` draw: mapzen_icon_library: # _points: sprite: airport collide: false # angle: 180...
- I faced the problem that Tangram requires specific options to be minified with `uglify-js` [when I was bundling Tangram for mapzen.js](https://github.com/mapzen/mapzen.js/pull/434/commits/786a59864e3451c56d34a88a484aef20396abf7f#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R17). - Now this info is in [the comment...
Removing the Leaflet layer (e.g. layer.remove()) will cause all the Tangram resources to be deallocated. It should work as long as you avoid having more than one map loaded at...
https://github.com/tangrams/tangram-docs/blob/gh-pages/pages/layers.md Example: ```yaml layers: parent-layer: visible: false child-layer: visible: true draw: polygons: order: 1 color: blue ``` Is `child-layer` drawn? The current documentation is ambiguous on this, and we've recently...