We're building TapMap, a social network built on maps: instead of a feed, you get a map of places, people and their own maps. Stack: Flutter (Android, iOS and web from one codebase), Mapbox ( mapbox_maps_flutter on phones, mapbox-gl-js in the browser) and self-hosted Supabase on Postgres 17 with PostGIS.
Today the database holds 26,400 published places in 6,185 cities, and the whole thing lives on the phone. There is no clustering, and there won't be. Below is how we got here, with the numbers for every step. Most of them are not flattering.
Why no clustering
A bubble that says "47" doesn't answer "where should I go?". You see that there's a lot of something somewhere, zoom in, the bubble splits into smaller bubbles, zoom in again. By the fourth zoom people close the app. We wanted specific places visible at every zoom level: the strongest ones from far away, all of them up close.
The product owner made the call with no compromise: no bubbles. Our job was to keep the map alive anyway.
Step 0.β¦