A time slider
Move the time, or press “Now”, and the map shows the streets closed at that moment.
Custom development · Open source
You move the time and the map shows the streets closed at that moment, the race course and where you cannot park.
I first built it for the Generali Maratón de Málaga 2026 and published the code as open source, so it can be used for other events.
The closures for the marathon were announced in a notice from the city council: a list of streets, each with its closure times.
The map draws those streets in colour by time slot, so you can see at a glance what is closed at each hour.
The shape of each street comes from OpenStreetMap, looked up by its name. If a street is not found, the tool says so and never makes up a line. Partial or uncertain closures are flagged on the map instead of being assumed.
A validator checks the data: time slots that do not exist, repeated colours, links without https, street lines outside the map bounds or missing translations. If it finds an error, the page is not built.
Move the time, or press “Now”, and the map shows the streets closed at that moment.
Streets are coloured by closure time slot. Tap one to see its hours and notes.
Streets where you cannot park, car parks with restricted access, and the race course.
A block with last-minute changes that can be updated during the event without publishing the page again.
It works on phones, in Spanish and English, with no cookies and no analytics.
The race took place on 8 November 2026. This screenshot has the same framing as the one above, three hours later.
At 13:30. 21 streets are still closed. The ones already reopened turn into a dotted course line.
Screenshots of the published map, which carries the Tomatic brand.
Everything the map shows comes from a few JSON files. You can edit them by hand, or prepare them with an AI agent from the official notice.
The code is published under the Apache 2.0 licence. It works for any event with road closures: a marathon, a parade, a cycling race or a festival.

The map is a static page published on Firebase Hosting. It only needs Node 22, with no framework and no dependencies to install.
It has a strict content security policy. An automated test opens the page in Chrome at desktop and phone size, and fails if there are errors or if the map comes out empty.
The logo, colours, typeface, title and call to action come from a branding file. The page supports as many languages as needed, with Spanish and English built in, and picks the browser’s language.
Tell me about the event and what information you have. I will tell you whether it is a fit and what a first version could include.