How to show multiple areas by location in google maps using php
Here is the Initialise function..... function initialize() {
Here the variables $Latitude,$Longitude are array values so how can i
store them in Javascript Variables so that they can store the above array
values....
var lat='<?php echo $Latitude?>';
var lon='<?php echo $Longitude?>';
var latlng = new google.maps.LatLng(lat,lon);
var myOptions = {
zoom: 10,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
Here how can i loop the geocoder to show multiple areas using above array
variables...
map = new
google.maps.Map(document.getElementById("map_canvas"),
myOptions);
geocoder = new google.maps.Geocoder();
var marker = new google.maps.Marker({
position: latlng,
map: map,
title: "Hello World!"
});
}
No comments:
Post a Comment