hi,
in my database i am storing Latitude and Longitude values,i am not saving the address of that point...
I want to show those points in google map.
i am getting latitude ,longitude and sno from database and mapping in the following way...
var markers = JSON.parse('<%=ConvertDataTabletoString()%>');
for (i = 0; i < markers.length; i++) {
var data = markers[i]
var myLatlng = new google.maps.LatLng(data.lat, data.lng);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: data.title
});
(function (marker, data) {
google.maps.event.addListener(marker, "click", function (e) {
infoWindow.setContent(data.title);
infoWindow.open(map, marker);
});
})(marker, data);
}
here i am getting title as sno from database.
But i want to show the correct address of that marker if i click the marker.....
is there any events or functions in googlemaps to show the address of marker...
i want to get correct address in place of data.title which is getting from database
if you know please reply me.....