Skip to content

Instantly share code, notes, and snippets.

@turban
Created November 4, 2012 12:45
Show Gist options
  • Save turban/4011766 to your computer and use it in GitHub Desktop.
Save turban/4011766 to your computer and use it in GitHub Desktop.
{
"tilejson": "2.0.0",
"scheme": "xyz",
"bounds": [ 166, -47.5, 179, -34 ],
"center": [ 173.3, -41.273, 5 ],
"minzoom": 0,
"maxzoom": 12,
"name": "Population density map of New Zealand",
"description": "Created by Bjørn Sandvik\nhttp://blog.thematicmapping.org/",
"legend": "<div class='my-legend'>\n<div class='legend-title'>Population density<br/>per km<sup>2</sup> (2011)</div>\n<div class='legend-scale'>\n <ul class='legend-labels'>\n <li><span style='background:#FFFFFF;'></span>None</li>\n <li><span style='background:#FFFFE5;'></span>< 1</li>\n <li><span style='background:#FFF7BC;'></span>1 - 5</li>\n <li><span style='background:#FEE391;'></span>5 - 10</li>\n <li><span style='background:#FEC44F;'></span>10 - 50</li>\n <li><span style='background:#FE9929;'></span>50 - 100</li>\n <li><span style='background:#EC7014;'></span>100 - 250</li>\n <li><span style='background:#CC4C02;'></span>250 - 500</li>\n <li><span style='background:#993404;'></span>500 - 1000</li>\n <li><span style='background:#662506;'></span>1000 ></li>\n </ul>\n</div>\n<div class='legend-source'>Map: <a href=\"http://blog.thematicmapping.org\">Bjørn Sandvik</a><br/>Data: <a href=\"http://www.stats.govt.nz/\">Statistics New Zealand</a></div>\n</div>",
"attribution": "Statistics New Zealand",
"template": "{{#__location__}}{{/__location__}}{{#__teaser__}}<div>\n<strong>{{{au_name}}}</strong><br>\nPopulation: {{{pop2011}}} (2011)<br>\nArea: {{{area}}} km<sup>2</sup><br>\nDensity: {{{popdens}}} per km<sup>2</sup>\n</div>{{/__teaser__}}{{#__full__}}{{/__full__}}",
"version": "1.0.0",
"tiles": [
"http://earthatlas.info/nz/tiles/nz-popden/{z}/{x}/{y}.png"
],
"grids": [
"http://earthatlas.info/nz/tiles/nz-popden/{z}/{x}/{y}.json"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment