Click here to Skip to main content
15,851,242 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.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) {
                 , 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.....

1 solution

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900