All examples By author By category About

darrenjaworski

Google Maps + D3 (OSP)

From an example by Mike Bostock implementing D3 and Google Maps together. This map is centered on the McAlester Prison, as a prior visualization was, and allows marker annotation of a Google map.

var map = new google.maps.Map(d3.select("#map").node(), {
  	zoom: 17,
  	center: new google.maps.LatLng(34.954642, -95.783317),
  	disableDefaultUI: true,
  	disableDoubleClickZoom: true,
  	draggable: false,
  	scrollwheel: false,
  	mapTypeId: google.maps.MapTypeId.SATELLITE
});

When rendering the map I disabled the default UI, double click zoom, drag, and scrollwheel zoom. We want a simple overlay for presentation purposes.