$(document).ready(function() {
    $('.location .map').each(function() {
        var centerLatitude = Number($(this).attr('centerLat'));
        var centerLongitude = Number($(this).attr('centerLong'));
        var myLatlng = new google.maps.LatLng(centerLatitude, centerLongitude);
        var myPointer = new google.maps.LatLng(centerLatitude, centerLongitude); 
        
        var myOptions = {
          zoom: Number($(this).attr('zoom')),
          center: myLatlng,
          draggable: false,
          scrollwheel: false,
          mapTypeId: google.maps.MapTypeId.ROADMAP
        }
        var map = new google.maps.Map(document.getElementById($(this).attr('id')), myOptions);

        var marker = new google.maps.Marker({
            position: myPointer, 
            map: map
        });
    });
});
