Digital Geography

D3 Mapping Basics

Within this, 2nd basic D3 tutorial, I will show you how to combine D3 with Leaflet whereby each library can demonstrate its vantages! These will be the main topics: Set up a map using Leaflet Add an individual zoombar Show the center of the map Show the extent of the map Get a 1st impression of d3.scale() When you are not familiar with D3 or Leaflet I recommend you to apply these tutorials, previously: D3 Basics geoJSON & Leaflet Set up a map using Leaflet Let’s begin by setting up an html-file containing a very simple map. How this can…