{"action":"closed","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/317","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/317/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/317/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/317","id":28549962,"number":317,"title":"support fontsize as function for placement","user":{"login":"ansis","id":1421652,"avatar_url":"https://avatars.githubusercontent.com/u/1421652?v=3","gravatar_id":"","url":"https://api.github.com/users/ansis","html_url":"https://github.com/ansis","followers_url":"https://api.github.com/users/ansis/followers","following_url":"https://api.github.com/users/ansis/following{/other_user}","gists_url":"https://api.github.com/users/ansis/gists{/gist_id}","starred_url":"https://api.github.com/users/ansis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansis/subscriptions","organizations_url":"https://api.github.com/users/ansis/orgs","repos_url":"https://api.github.com/users/ansis/repos","events_url":"https://api.github.com/users/ansis/events{/privacy}","received_events_url":"https://api.github.com/users/ansis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/placement","name":"placement","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/milestones/5","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/milestones/5/labels","id":682066,"number":5,"title":"future","description":"","creator":{"login":"mourner","id":25395,"avatar_url":"https://avatars.githubusercontent.com/u/25395?v=3","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":57,"state":"open","created_at":"2014-06-05T11:12:03Z","updated_at":"2015-01-29T16:38:26Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-03-01T04:10:16Z","updated_at":"2015-01-29T16:38:26Z","closed_at":"2015-01-29T16:38:26Z","body":"If the fontsize increases a lot as you zoom in, then just using the largest fontsize during placement isn't good enough. It adds too much padding around labels and reduces density.\r\n\r\nplacement with `\"fontSize\": 40`\r\n![](https://github-camo.global.ssl.fastly.net/042510244a9b8855c7fcd7fd76622eedb51bafd4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f75706c6f6164732e686970636861742e636f6d2f38313833322f3539313937342f4c436f58694155665a53736153697a2f75706c6f61642e706e67)\r\n\r\nplacement with `\"fontSize\": 20`\r\n![](https://f.cloud.github.com/assets/1421652/2300498/45f20188-a0f4-11e3-80ba-5987d23e64fa.jpg)"}}