Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of China City Basemap

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed