us map in d3.js

us map in d3.js

// Create the map
var map = new L.Map('map');

// Set the view to center on the US
map.setView([39.833333, -98.583333], 4);

// Set up the OSM layer
  'http://{s}{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="">OpenStreetMap</a>'

// Add a GeoJSON layer

Subscribe to The Poor Coder | Algorithm Solutions

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
[email protected]