PageSourceSearch

https://unitedstage.fi/app/cache/min/5/app/themes/united-stage/blocks/map/script.js?ver=1791351162

js unitedstage.fi collected 2026-10-08 01:22:04 UTC 3,241 bytes, 5 lines download raw bytes

1(function($){function initMap($el){var $markers=$el.find('.marker');var mapArgs={zoom:$el.data('zoom')||16,mapTypeId:google.maps.MapTypeId.ROADMAP,styles:[{"elementType":"geometry","stylers":[{"color":"#212121"}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"elementType":"labels.text.fill","stylers":[{"color":"#757575"}]},{"elementType":"labels.text.stroke","stylers":[{"color":"#212121"}]},{"featureType":"administrative","elementType":"geometry","stylers":[{"color":"#757575"}]},{"featureType":"administrative.country","elementType":"labels.text.fill","stylers":[{"color":"#9e9e9e"}]},{"featureType":"administrative.land_parcel","stylers":[{"visibility":"off"}]},{"featureType":"administrative.locality","elementType":"labels.text.fill","stylers":[{"color":"#bdbdbd"}]},{"featureType":"poi","elementType":"labels.text.fill","stylers":[{"color":"#757575"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#181818"}]},{"featureType":"poi.park","elementType":"labels.text.fill","stylers":[{"color":"#616161"}]},{"featureType":"poi.park","elementType":"labels.text.stroke","stylers":[{"color":"#1b1b1b"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"color":"#2c2c2c"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#8a8a8a"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#373737"}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"color":"#3c3c3c"}]},{"featureType":"road.highway.controlled_access","elementType":"geometry","stylers":[{"color":"#4e4e4e"}]},{"featureType":"road.local","elementType":"labels.text.fill","stylers":[{"color":"#616161"}]},{"featureType":"transit","elementType":"labels.text.fill","stylers":[{"color":"#757575"}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"color":"#3d3d3d"}]}]};var map=new google.maps.Map($el[0],mapArgs);map.markers=[];$markers.each(function(){initMarker($(this),map)});centerMap(map);return map}
2function initMarker($marker,map){var lat=$marker.data('lat');var lng=$marker.data('lng');var latLng={lat:parseFloat(lat),lng:parseFloat(lng)};var marker=new google.maps.Marker({position:latLng,map:map});map.markers.push(marker);if($marker.html()){var infowindow=new google.maps.InfoWindow({content:$marker.html()});google.maps.event.addListener(marker,'click',function(){infowindow.open(map,marker)})}}
3function centerMap(map){var bounds=new google.maps.LatLngBounds();map.markers.forEach(function(marker){bounds.extend({lat:marker.position.lat(),lng:marker.position.lng()})});if(map.markers.length==1){map.setCenter(bounds.getCenter())}else{map.fitBounds(bounds)}}
4$(document).ready(function(){$(document).on('click','.btn-load-map',function(e){loadGoogleMap()})});function loadGoogleMap(){var script=document.createElement('script');script.src=window.map_placeholder.g_map_url;script.async=!0;script.defer=!0;document.head.appendChild(script)}
5window.gmapCallback=function(){$('.acf-map').each(function(){var map=initMap($(this))});window.dataLayer=window.dataLayer||[];window.dataLayer.push({"event":"btnClickLoadGoogleMaps"})}})(jQuery)

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.