Fork of City density filtering by population and proximity
A world map displays cities with populations over 50,000 sourced from OpenStreetMap, rendered as gray dots alongside highlighted prominent cities. The visualization iteratively filters smaller cities within a distance buffer of larger ones, with blue and white circles indicating surviving cities and their ranks. Using d3.geoPath with a Natural Earth projection, it sizes circles via d3.scaleSqrt and employs @turf/turf functions like buffer and booleanPointInPolygon to determine proximity suppression. Country outlines come from World Atlas TopoJSON.
AI-generated descriptionSpecial Thanks to Alan McConchie for all the interesting things I've been forking for learning purposes.
A world map showing cities with population greater than 50,000. City data from OpenStreetMap, querying all features with place=city.
Gray dots are all the cities in the input data. (Cities in India are missing from this dataset)
Blue and white dots show biggest cities with all their smaller neighbors (within a given radius) filtered out.
Country boundaries from World Atlas TopoJSON, polished for visual style. (That part forked from Sized Points on a Map)