Friday, June 27, 2025

Italian Map Rot

If Your Year of Birth Starts with "21"

In a desperate attempt to cash in on a popular meme, I present to you: The Italian Brainrot Map.

Yesterday, I asked ChatGPT to generate a list of country names in the style of Italian Brainrot characters. A few minutes later, I had those names injected into an interactive map.

Trying to Justify Posting This:

Overall I'd say that ChatGPT's Italian Brainrot names are not as hilarious as I'd hoped. However some of you may be interested in how I managed to add the names to the map. 

The map leverages MapLibre’s powerful expression-based styling. Using the setLayoutProperty method, an expression is applied to the text-field property of label layers.

My map uses OpenFreeMap as the source for map tiles. The text-field properties for country place-name labels in OpenFreeMap are label_country_1, label_country_2, and label_country_3. Using these properties, my expression employs the match operator to look up each country’s English name (name_en) and replace it with a creatively "Italianized" Brainrot version. For countries not explicitly matched, a fallback ensures that the original names remain intact.

Tip: You can determine the properties of individual features in a vector tile style using the Maputnik visual style editor. Simply open the map tile layer in Maputnik and click on features on the map to discover the name of the layer and its properties.

No comments: