This is a new experimental page we are developing to help find languages spoken near a point on a map. It doesn't work yet and it's not linked from pages on our main site.
let map; const SCRIPT_URL = https://script.google.com/macros/s/AKfycbz0ALDCsOBhBXjaOpxJB_3CYHCVLuopIxaEyM6_sUTIyW0fGwAeKHjXrNA1bHP7WyRY/exec; function initMap() { map = new google.maps.Map(document.getElementById("map"), { center: { lat: 51.5074, lng: -0.1278 }, // Set your default center zoom: 8, }); map.addListener("click", (e) => { const lat = e.latLng.lat(); const lng = e.latLng.lng(); const radius = document.getElementById("radiusVal").value; document.getElementById("spreadsheet-results").innerHTML = "Searching Sheet..."; // Fetch data from your Google Sheet script fetch(`${SCRIPT_URL}?lat=${lat}&lng=${lng}&radius=${radius}`) .then(res => res.json()) .then(data => { displayData(data); }); }); } function displayData(data) { let html = ""; data.forEach((row, i) => { html += ""; row.forEach(cell => { html += ``; }); html += ""; }); html += "
| ${cell} |
"; document.getElementById("spreadsheet-results").innerHTML = html; }