Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of China City Basemap

Public visualization

Viewing a saved revision (read-only)

520cb87143aa4fd993c3a3387f6c137f

Fork of China City Basemap

0 stars0🌍 Public
Mmyoung1032
Last edited Jun 6, 2021
Created on Jun 6, 2021
Forked from China City Basemap

This example visualizes a basemap of Chinese cities, using a Mercator projection centered on China to render province and city boundaries as SVG paths. The map displays the geographic outlines in a muted blue with subtle black strokes. The code uses `d3.geoMercator`, `d3.geoPath`, and TopoJSON's `feature` method to convert TopoJSON data into GeoJSON for rendering. The basemap data is loaded remotely from a GitHub gist, and each feature is styled via a CSS class.

AI-generated description