Maps are the heart of a restaurant app, and they are also one of the most expensive pieces to run. Instead of renting a commercial map, we built the Serchese Map entirely on open source software and open data.
The stack
- MapLibre GL JS draws the map in your browser. It is open source under the BSD license.
- OpenFreeMap serves the vector tiles for free, with no API key and no usage limits.
- OpenStreetMap supplies the underlying geography: streets, water, parks and buildings, mapped by volunteers.
Our own look
Vector tiles contain raw geometry, not pictures, so we get to decide how every road and river looks. We designed two styles. Serchese Night matches the dark app with deep water, muted roads and scarlet highways. Serchese Day is a warm, paper toned version for the light theme. The map switches automatically when you change themes.
Pins that stay readable
Restaurant pins are drawn as their own data layer on top of the base map. Nearby spots group into numbered clusters that expand when you tap them, and names hide when they would overlap instead of piling on top of each other. Tap any pin for a preview card with hours, a Directions button and the full menu.
When something goes wrong
If the tile service cannot be reached, restaurant pins still appear on a plain background with a short notice, so the map never turns into a blank box. If your browser cannot draw interactive maps at all, the app offers the list view instead.
Giving credit
OpenStreetMap data is shared under the Open Database License, and the credit appears in the corner of every map. You can read more on our Open Data and Credits page.