tangrams / tangram

WebGL map rendering engine for creative cartography
https://tangram.city
MIT License
2.22k stars 290 forks source link

apply sprite `size` logic to textures #643

Closed meetar closed 6 years ago

meetar commented 6 years ago

Currently certain size rules are only applied in the presence of sprites. From the docs:

Note: Since both percent-based and ratio-constrained scaling only make sense in the context of a sprite (not a simple colored shader point), specifying these for layers without both a texture and a sprite defined will generate warnings and draw nothing, for example:

However these should also apply in the case of a simple texture.

Includes:

meetar commented 6 years ago

Duplicate of https://github.com/tangrams/tangram/issues/638