// Mock data matching Pydantic / OpenAPI schema requirements
const SCULPTURES_DATA = [
{
id: "234e5678-e89b-12d3-a456-426614174001",
name: "La Novia Dulce",
artist: "Lorena Espitia",
year: 2006,
latitude: 3.450143,
longitude: -76.533282,
status: "on-site",
image: "assets/la_novia_dulce.png",
description: "Decorated with sweets and candies representing Cali's culinary traditions. This bride is a homage to the traditional 'Macetas' given to godchildren every June.",
unlocked_content: "Cultural Oracle Insight: Lorena Espitia used bright fiberglass modeling to create a tactile sense of Colombian sugar candies. The sculpture is traditionally positioned near the river to evoke Cali's warm breeze carrying sweet aromas.",
captured: false,
audio_url: "https://cdn.gatos.cali.gov.co/audio/novia_dulce.mp3"
},
{
id: "234e5678-e89b-12d3-a456-426614174002",
name: "La Gata Ceremonial",
artist: "José Horacio Martínez",
year: 2006,
latitude: 3.451600,
longitude: -76.532600,
status: "moved",
image: "assets/la_gata_ceremonial.png",
description: "A dark sculpture featuring intricate pre-Columbian gold patterns. It represents the ancestral heritage, jaguar spirits, and mythological elements of Southwest Colombia.",
unlocked_content: "Cultural Oracle Insight: The gold motifs are inspired by Calima culture gold artifacts. Its temporary relocation due to civic repairs on the Boulevard has triggered consensus recalculation, verifying its new spot 150m north.",
captured: false,
audio_url: "https://cdn.gatos.cali.gov.co/audio/gata_ceremonial.mp3"
},
{
id: "234e5678-e89b-12d3-a456-426614174003",
name: "La Gata Ilustrada",
artist: "Lucy Tejada",
year: 2006,
latitude: 3.452600,
longitude: -76.532000,
status: "on-site",
image: "assets/la_gata_ilustrada.png",
description: "A whimsical tribute decorated with open books, flying musical notes, and colorful abstract silhouettes of dancing people. Created by the pioneer female artist Lucy Tejada.",
unlocked_content: "Cultural Oracle Insight: Lucy Tejada painted this cat as a reminder of Cali's literary and artistic renaissance in the mid-20th century. It features references to the Cali Group writers and traditional local salsa music.",
captured: false,
audio_url: "https://cdn.gatos.cali.gov.co/audio/gata_ilustrada.mp3"
}
];
let map;
let markers = [];
let selectedSculpture = null;
let currentFilter = 'all';
// Initialize Map
function initMap() {
// Center on Cali Gato monument area
map = L.map('map', {
zoomControl: false,
attributionControl: false
}).setView([3.4516, -76.5325], 16);
// Add zoom control at bottom-right
L.control.zoom({
position: 'bottomright'
}).addTo(map);
// CartoDB Dark Matter tiles
L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png', {
maxZoom: 20
}).addTo(map);
renderMarkers();
}
// Render Leaflet Markers
function renderMarkers() {
// Clear existing markers
markers.forEach(marker => map.removeLayer(marker));
markers = [];
SCULPTURES_DATA.forEach(sculpture => {
// Skip if doesn't match filter
if (currentFilter !== 'all' && sculpture.status !== currentFilter) {
return;
}
// Custom glowing icon
const customIcon = L.divIcon({
html: `