Here is the Initialise function.....
function initialize() {
Here the variables $Latitude,$Longitude are array values so how can i stor
This should work for you assuming lat and lon are javascript arrays with the same length:
var map = null;
function initialize() {
var lat='';
var lon='';
// initialize map center on first point
var latlng = new google.maps.LatLng(lat[0],lon[0]);
var myOptions = {
zoom: 10,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var bounds = new google.maps.LatLngBounds();
for (var i=0, i