Saltar al contenido
Videographer Logo
  • Home
    • Home – Alternate #1
    • Home – Alternate #2
  • About
  • Services
  • Our Projects
  • News
  • Contact
  • View Demo Reel
Director With Cast

marzo 6, 2020

How to create completely new sounds with old audio clips

[mapa_post]

document.addEventListener("DOMContentLoaded", function() { const container = document.getElementById('post-map'); if (!container) return; let markers = []; let nearby = []; // πŸ”’ parse seguro try { markers = JSON.parse(container.dataset.markers || '[]'); nearby = JSON.parse(container.dataset.nearby || '[]'); } catch (e) { console.error('Error parsing JSON:', e); return; } if (!markers.length) return; const validMarkers = markers.filter(m => m.lat && m.lng && !isNaN(m.lat) && !isNaN(m.lng) ); if (!validMarkers.length) return; // πŸ—ΊοΈ MAPA const map = L.map('post-map'); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: 'Β© OpenStreetMap contributors' }).addTo(map); const bounds = []; // 🟒 ICONO PRINCIPAL const mainIcon = L.icon({ iconUrl: 'https://www.escapadarural.com/blog/wp-content/uploads/2026/03/pinmaps.svg', iconSize: [36, 46], iconAnchor: [18, 46] }); // βšͺ ICONO CERCANOS const nearbyIcon = L.icon({ iconUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png', iconSize: [20, 30], iconAnchor: [10, 30], className: 'nearby-marker' }); // 🟒 PINS PRINCIPALES validMarkers.forEach(marker => { const lat = parseFloat(marker.lat); const lng = parseFloat(marker.lng); L.marker([lat, lng], { icon: mainIcon }).addTo(map); bounds.push([lat, lng]); }); // βšͺ CERCANOS POR CADA PIN validMarkers.forEach((marker, index) => { const group = nearby[index] || []; group.forEach(m => { if (!m.lat || !m.lng) return; const lat = parseFloat(m.lat); const lng = parseFloat(m.lng); const pin = L.marker([lat, lng], { icon: nearbyIcon }).addTo(map); // 🧠 popup tipo Airbnb const content = `
${m.title || ''}
Leer mΓ‘s
`; pin.bindPopup(content); }); }); // πŸ” AUTOZOOM if (bounds.length === 1) { map.setView(bounds[0], 14); } else if (bounds.length > 1) { map.fitBounds(bounds, { padding: [40, 40] }); } // 🧠 fix Avada / render lazy setTimeout(() => { map.invalidateSize(); }, 300); });
Videographer Logo 1

Avada Productions
1234 Avada Avenue
Avadaville, 11221

info@your-company.com
Call us: (1) 234 5678

Services

Drone footage

Film production

Live events

Music videos

Recent projects

Crazyplay new music video

New York morning show 2020

Premios feroz music festival 2019

Reflex Victory short film editing

Β© 2012 - 2026 β€’ Avada is a Website Builder for WordPress and eCommerce β€’ All Rights Reserved β€’ Developed by ThemeFusion

Page load link
Ir a Arriba