County Selector
✓ Published0🌍 Public
Aandrewxhill
Last edited Jul 11, 2014
Created on Jun 17, 2014
A map highlights a selected U.S. county by name, supplied via a URL query parameter, and re-centers the view on that county’s centroid. It uses CartoDB’s `cartodb.createLayer` with a SQL query that sets a `highlight` boolean, and Leaflet’s `map.setView` for animation. The basemap comes from CartoDB’s light tiles, while the county geometry and centroid calculations rely on the `us_counties_4` table queried through CartoDB’s SQL API.
AI-generated description