Skip to main content
100%

Gist 54a4da81bb77308303fc5537ac587fe5

✓ Published0🌍 Public
CCliffordAnderson
Last edited Feb 2, 2017
Created on Jan 25, 2017

This example creates a minimal map visualization using a single GeoJSON Point feature representing the Dinagat Islands, positioned at coordinates (-86.8098, 36.1442). It first renders the point’s geometry using `d3.geoPath` and a standard geographic projection, then applies `d3.forceSimulation` to animate the point’s position, demonstrating how a fixed geographic coordinate can be displaced by a force-directed layout. The code uses both Canvas and SVG elements, with the simulation updating the point’s screen location each tick while the underlying projection remains static.

AI-generated description

Similar vizzes