Geo (projection fitExtent)
✓ Published0🌍 Public
MMicrobie
Last edited Jul 24, 2018
Created on Jul 24, 2018
This canvas-based visualization displays the world’s landmasses using an equirectangular projection, with a dashed border marking the projection’s fitted extent. The example uses the d3.geoPath and d3.geoProjection APIs to render GeoJSON data (sourced from Natural Earth) directly onto a 2D canvas. It rotates the projection by -603 degrees and calls the fitExtent method to scale and center the map within the given bounds, drawing both the geography and the extent box using canvas strokes.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed