Skip to main content
100%

Zoom and Rotating (Reprojecting)

✓ Published0🌍 Public
AAlexanderDavidson
Last edited Apr 21, 2017
Created on Apr 21, 2017

This example shows a world map rendered on interactive 3D objects—a plane and a sphere—inside an A-Frame virtual reality scene, with the map rotating continuously over time. The geographic data is drawn to a 2D canvas using `d3.geoEquirectangular` for the projection, `d3.geoPath` for generating paths, and `d3.geoGraticule` for the grid lines. A `d3.timer` controls the animation loop, while an A-Frame component (`draw-canvas`) updates the canvas texture on the 3D entities. The map geojson includes country polygons from a natural earth dataset.

AI-generated description

forked from <a href='http://bl.ocks.org/pnavarrc/'>pnavarrc</a>'s block: <a href='http://bl.ocks.org/pnavarrc/43dd75fb3693588c99ff'>Mapping with canvas</a>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/28941936167f17fe92cc2b5ef4ea5fa4'>Mapping with canvas</a>

forked from <a href='http://bl.ocks.org/AlexanderDavidson/'>AlexanderDavidson</a>'s block: <a href='http://bl.ocks.org/AlexanderDavidson/8a4856f368657571c13a9488503bf07e'>Mapping with canvas v3 -> v4</a>

forked from <a href='http://bl.ocks.org/AlexanderDavidson/'>AlexanderDavidson</a>'s block: <a href='http://bl.ocks.org/AlexanderDavidson/6ef7ebe9bde38eb48cbc4c2856045fbb'>Mapping with canvas aframe test</a>

forked from <a href='http://bl.ocks.org/AlexanderDavidson/'>AlexanderDavidson</a>'s block: <a href='http://bl.ocks.org/AlexanderDavidson/39e9f460b59b92649ee770d68b8d640c'>Mapping with canvas aframe test 2</a>

mit Licensed

Similar vizzes