1function buildMaps(coordinates, zoomLevel) { 2 3 $('[data-googlemap]').each( function(){ 4 5 var mapOptions = { 6 draggable: $(this).data('draggable'), 7 scrollwheel: $(this).data('scrollwheel'), 8 zoom: $(this).data('zoom'), 9 panControl: $(this).data('panControl'), 10 zoomControl: $(this).data('zoomControl'), 11 mapTypeControl: $(this).data('mapTypeControl'), 12 scaleControl: $(this).data('scaleControl'), 13 streetViewControl: $(this).data('streetViewControl'), 14 overviewMapControl: $(this).data('overviewMapControl'), 15 disableDefaultUI: $(this).data('disablecontrols'), 16 center: new google.maps.LatLng( $(this).data('lat'), $(this).data('lng') ) 17 }; 18 19 var map = new google.maps.Map( document.getElementById( $(this).attr('id') ), mapOptions); 20 21 var myLatlng = new google.maps.LatLng( $(this).data('lat'), $(this).data('lng') ); 22 var marker = new google.maps.Marker({ 23 position: myLatlng, 24 map: map 25 }); 26 27 }) 28} 29$(document).ready( function(){ 30 buildMaps(); 31}); 32 33google.maps.event.addDomListener( window, 'load' );
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.