1document.addEventListener("DOMContentLoaded", function () { 2 3 const maps = document.querySelectorAll(".aan-gmap"); 4 if (!maps.length) return; 5 6 window.initAANMaps = function () { 7 maps.forEach(mapEl => { 8 const apiKey = mapEl.dataset.api; 9 const lat = parseFloat(mapEl.dataset.lat); 10 const lng = parseFloat(mapEl.dataset.lng); 11 const zoom = parseInt(mapEl.dataset.zoom); 12 let style = []; 13 14 try { 15 style = JSON.parse(mapEl.dataset.style); 16 } catch (e) {} 17 18 const map = new google.maps.Map(mapEl, { 19 center: { lat, lng }, 20 zoom, 21 styles: style, 22 disableDefaultUI: true, 23 }); 24 25 const svgMarker = { 26 path: "M12.9902 22.5L-0.000146926 5.39648e-07L25.9806 -1.73166e-06L12.9902 22.5Z", 27 fillColor: "#004225", 28 fillOpacity: 1, 29 strokeWeight: 0, 30 scale: 1.5, 31 anchor: new google.maps.Point(15, 15), 32 }; 33 34 new google.maps.Marker({ 35 position: { lat, lng }, 36 //icon: svgMarker, 37 map: map, 38 }); 39 }); 40 }; 41 42 const apiKey = maps[0].dataset.api; 43 const script = document.createElement("script"); 44 script.src = `https://maps.googleapis.com/maps/api/js?key=AIzaSyBL-b9QGwV7SjLI6Mu_unpix_8Ozka7ND0&loading=async&callback=initAANMaps`; 45 script.async = true; 46 47 document.body.appendChild(script); 48});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.