Hello,
This is the code i got by googling but i am not able to get how to bring data from database instead of static latitude and longitude.Please answer its urgent.``
function initialize() {
var myLatlng = new google.maps.LatLng(40.713956,-74.006653);
var myOptions = {
zoom: 8,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
} map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var marker = new google.maps.Marker({
draggable: true,
position: myLatlng,
map: map,
title: "Your location"
}); google.maps.event.addListener(marker,'click',function(overlay,point){
document.getElementById("latbox").value = lat();
document.getElementById("lngbox").value = lng();
});
}"
instead of this ``var myLatlng = new google.maps.LatLng(40.713956,-74.006653);
i want dynamic data.
Thank you,
Khushi