Drawing Custom Population Polygons

Tom Forth’s Population around a Point is one of those wonderfully simple map tools that instantly invites exploration. Click anywhere on the map, choose a radius, and it estimates how many people live within that circle. Under the hood, it uses the Global Human Settlement Layer (GHSL) population grid for 2024, querying population points stored in a massive SQLite database.Now Maps Mania… more →
Posted in: Interactive Maps

Custom Markers with Leaflet

As I continue to dig into Leaflet, I was recently asked about custom markers based on data, so for example, some locations for a store may use one icon while others use another. I did some digging, and while it turns out Leaflet has deep support for customizing markers, it does take a little bit of work. Here’s what I found. First off, this is the default marker: Out of the box, this is it. Period. I can appreciate the library wanting to keep its size to a minimum, but I was a bit surprised. That being said, the library provides really flexible support for creating your own markers. The first thing I found was the tutorial, Markers With Custom Icons. In this tutorial, they describe the... more →
Posted in: JavaScript