1/*==============================================================*/ 2// Elkevent Map JS 3/*==============================================================*/ 4(function($) { 5 "use strict"; // Start of use strict 6 var marker; 7 8 window.initMap = function() { 9 var map = new google.maps.Map(document.getElementById('map'), { 10 zoom: 13, 11 center: {lat: 59.325, lng: 18.070} 12 }); 13 14 marker = new google.maps.Marker({ 15 map: map, 16 draggable: true, 17 animation: google.maps.Animation.DROP, 18 position: {lat: 59.327, lng: 18.067} 19 }); 20 marker.addListener('click', toggleBounce); 21 } 22 23 function toggleBounce() { 24 if (marker.getAnimation() !== null) { 25 marker.setAnimation(null); 26 } else { 27 marker.setAnimation(google.maps.Animation.BOUNCE); 28 } 29 } 30}(jQuery)); // End of use strict
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.