Skip to content

Instantly share code, notes, and snippets.

@FrieseWoudloper
Created September 14, 2019 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrieseWoudloper/566ebffa0d3607890e18a549634d003c to your computer and use it in GitHub Desktop.
Save FrieseWoudloper/566ebffa0d3607890e18a549634d003c to your computer and use it in GitHub Desktop.
test met hogere scale factor
<!DOCTYPE html>
<script src="https://d3js.org/d3.v3.min.js"></script>
<div class="graph"></div>
<script>
alert('hello');
var width = 960;
var height = 500;
var svg = d3.select("body").append("svg")
var projection = d3.geo.mercator()
.scale(5000)
.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