Trying to center a GeoJSON map in D3 by trial and error is hideous. In response to a question on Stackexchange, Mike posted a method of projecting to a GeoJSON object. It rocks. The map shows the municipality of Jönköping, part of Jönköpings Län in Sweden.
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.municipality { | |
fill: #ccc; | |
} | |
.municipality :hover { | |
fill: orange; |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.overlay { | |
fill: none; | |
pointer-events: all; | |
} | |
.municipality { |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.municipality { | |
fill: #ccc; | |
} | |
.bubble { | |
fill: #7BB300; |
Scottish Index of Multiple Deprivation (SIMD) data for Perth and Kinross, Scotland.
Data Zones and Intermediate Zones are two new, small-area statistical geographies introduced by Scottish Neighbourhood Statistics (SNS) to build on the well-established postcode and census geographies. Data Zones have a population of between 500 and 1,000 household residents. Intermediate Zones are aggregations of data zones within local authorities and contain between 2,500 and 6,000 people. Data Zones and Intermediate Zones are now the key geographies for disseminating government statistics and for supporting policy making in Scotland.
Click to zoom in on a data zone, click again to zoom out. Overall deprivation is shown by default. Individual SIMD domains can be selected using the drop down menu.
Scottish Index of Multiple Deprivation (SIMD) data for the city of Glasgow, Scotland.
Data Zones and Intermediate Zones are two new, small-area statistical geographies introduced by Scottish Neighbourhood Statistics (SNS) to build on the well-established postcode and census geographies. Data Zones have a population of between 500 and 1,000 household residents. Intermediate Zones are aggregations of data zones within local authorities and contain between 2,500 and 6,000 people. Data Zones and Intermediate Zones are now the key geographies for disseminating government statistics and for supporting policy making in Scotland.
Click to zoom in on a data zone, click again to zoom out. Overall deprivation is shown by default. Individual SIMD domains can be selected using the drop down menu.