tangrams / tangram

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

apply %s, ratios, and density to textures in points #645

Closed meetar closed 6 years ago

meetar commented 6 years ago

Currently, points styles which do not have sprites defined can only specify size in fixed values of px. Additionally, setting a density in the texture definition has no effect.

This PR will allow points styles to use percentages (size: 50%) and ratios (size: [16px, auto] or size: [50%, auto]), and will use density in css_size calculations.

Fixes #638, fixes #641, fixes #642, and fixes #644.