Skip to content

Instantly share code, notes, and snippets.

@TWIAV
TWIAV / README.md
Last active May 21, 2022 09:42
PDOK TMS and WFS shown in Leaflet using proj4.js/proj4leaflet.js

A web application based on Leaflet showing Dutch public data from PDOK.

  • TMS Backgound map: BRT achtergrondkaart
  • TMS Aerial photo - please note this aerial photo can be used for non-commercial uses only (CC-BY-NC)
  • WFS National Parks

This example relies heavily on a gist published by Edward Mac Gillavry (Webmapper): Leaflet.js showing TMS in RD and WFS in WGS-84 - gist and block.

This example has been extended a little bit with a layer control and tooltips showing attribute information on the WFS layer.

@TWIAV
TWIAV / README.md
Last active January 15, 2016 19:25
D3/TopoJSON: using topology to display boundaries - I

An example using topojson.mesh() to distinguish between municipal (white) and provincial (black) boundaries.

An arc is stroked as a provincial boundary (black) if

  1. the arc is shared by two geometry objects (i.e. a !== b) AND they do not have the same province name (i.e. a.properties.provincie !== b.properties.provincie)
  2. the arc is only used by a single geometry (i.e. a === b). This is the case for all external, national boundaries.
@TWIAV
TWIAV / README.md
Last active May 14, 2022 18:30
D3/TopoJSON: map wit SVG Text labels

My very first exercise with TopoJSON and D3 - just a municipal map showing some basic information when you hover over the individual municipalities. Nothing really fancy, but, hey, you have got to start somewhere...

###Steps followed to create the file nlgemeenten2009.json:

Step 1. download input file gem_2009_gn3.shp from the Dutch Statistical Office: Wijk- en Buurtkaart 2009

Step 2. convert shapefile to GeoJSON with ogr2ogr:

    ogr2ogr \
 -f GeoJSON \