<?php
foreach $OperationsData::getAllHubs()
{
var myLatLng = {lat: $hub->deplat, lng: $hub->deplng };
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 4,
center: myLatLng
});
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: 'Airport ID'
});
}?>
Does this look right ?