Created
September 18, 2019 12:19
-
-
Save FrieseWoudloper/dbbbf5036a38b2eb912d97805615c7f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<script src="https://d3js.org/d3.v3.min.js"></script> | |
var width = 1200; | |
var height = 500; | |
var svg = d3.select("body").append("svg") | |
.attr('width', width) | |
.attr('height', height); | |
var projection = d3.geo.mercator() | |
.translate([width / 2, height / 2]) | |
var path = d3.geo.path() | |
.projection(projection); | |
url = "https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/wfs?service=wfs&request=GetFeature&typeName=cbs_arrondissementsgebied_2019_gegeneraliseerd&outputFormat=json&srsName=EPSG:4326"; | |
d3.json(url, function(err, geojson) { | |
svg.append("path") | |
.attr("d", path(geojson)) | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment