Skip to main content
100%

Popcorn Placemap

✓ Published0🌍 Public
Aandrewxhill
Last edited Apr 10, 2015
Created on Apr 10, 2015

A searchable map of geographic placenames that combines a CartoDB heatmap with live Wikipedia context for each query term. Users type a word like “Cesar Chavez” into a text field, triggering a SQL query against the geonames table to plot matching locations, while a parallel Wikipedia API call fetches the relevant article’s text and images into a side panel. The interface uses CartoDB’s `createVis` and `setSQL` methods for map rendering and updating, jQuery’s `getJSON` for the MediaWiki API requests, and Bootstrap for layout. The visualization shows how name searches can bridge spatial data with encyclopedic research.

AI-generated description

This is a clone of Paul Ramsey's Placenames Map to give context to searches; a prototype of a popcorn.js for maps. It uses a few cobbled-together code samples. Function additions to the original script are commented in all-caps.

Objective

Make a map that lets you search for placenames, and then automates some research about what that name references via Wikipedia. For example, a search for "Cesar Chavez" will create a heatmap for places named after Cesar Chavez, as well as pull in some wikipedia details about that search string.

When disambiguation is necessary, it pulls the most relevant name and offers a link alternative to rectify errors. It also pulls in images and links! More info to be had in pramsey's "About" section for his map.

Similar vizzes