Skip to main content
100%

Polymaps + D3, Part 2

✓ Published0🌍 Public
Mmbostock
Last edited Feb 8, 2016
Created on Apr 2, 2011

This example combines Polymaps and D3 to display weather station locations across California on a tiled base map. The map uses CloudMade image tiles with a compass control, while D3 renders SVG circles and labels for each station from a JSON file. As the map pans or zooms, the `map.on("move")` event updates the marker transforms using `map.locationPoint` to project geographic coordinates into screen positions. The stations are grouped in an SVG `<g>` element inserted beneath the compass layer, with circles styled with a brown semi-transparent fill.

AI-generated description
gpl-3.0 Licensed

Similar vizzes