1$(function () { 2 var closePopup = function () { 3 $('#map-page .hamburger').removeClass('is-active'); 4 $('#map-page .popup-menu').addClass('slide-out-left'); 5 6 setTimeout(function () { 7 $('#map-page .popup-menu').remove(); 8 }, 400); 9 10 if ($(window).width() < 575) { 11 $('.leaflet-control').removeClass('d-none'); 12 } 13 }; 14 15 var removePopups = function (selector) { 16 $(selector).each(function (index, elem) { 17 elem.remove() 18 }) 19 }; 20 21 var flyTo = function (map, point, zoom) { 22 if (zoom === undefined) { 23 zoom = map.getZoom(); 24 zoom = zoom <= 10 ? 10 : zoom; 25 } 26 map.flyTo([point[0], point[1]], zoom, {duration: 1.1, easeLinearity: 0.45}) 27 }; 28 29 30 window.map_util = { 31 closePopup: function () { 32 closePopup(); 33 }, 34 flyTo: function (map, point, zoom) { 35 flyTo(map, point, zoom); 36 }, 37 removePopups: function (selector) { 38 removePopups(selector); 39 } 40 } 41 42});
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.