Mapping Objects On D3 Map Projections
  Duration: 21:18
This Lesson is for subscribers

Mapping-objects-on-d3-map-projections_280x158
Unlock this lesson NOW!
  • Get expert advice on Mapping Objects On D3 Map Projections
  • Enjoy access to the complete DashingD3js catalog
  • Start mastering D3.js right now!

Takeaways:

  • d3.geo.path() is the D3 Geo Path Data Generator helper class for generating SVG Path instructions from GeoJSON data
  • D3 Geo Path does a mathematical transform between geographic coordinates and plane coordinates
  • The type of function that does a mathematical transformation between spherical coordinates to Cartesian coordinates is called a map projection
  • Map projections are commonly classified by how they preserve various properties on a map (be it preserve direction, shape, actual area, distance between two points or the shortest route between two points, or others)
  • Once the D3 projection has been passed or set, the d3.geo.path() D3 functionality will use it to generate the SVG Path instructions from GeoJSON data you give to it
  • You can use a GeoJSON Object's latitude and longitude coordinates to map it onto a GeoJSON SVG Path Map by running it through the d3.geo.path()

This Transcript is for subscribers.

Mapping-objects-on-d3-map-projections_280x158
Unlock this D3 Tutorial NOW!
  • Get expert advice on Mapping Objects On D3 Map Projections
  • Enjoy access to the complete DashingD3js catalog
  • Start mastering D3.js right now!
<< Back To D3 Screencast and Written Tutorials Index