Hi Alchemy,
                  Thanks for replying. Yes, i tried with that , but it
does'nt work out. In my case the same address is being geocoded over
and over again, i guess that is the problem. So i am thinking of
modifying the code in such  a way that if the address is already
geocoded, it will just fetch the code from the hidden field (where it
is stored) and overlay is added. But there is a problemin the way i
have coded :

Here 'flag' determines if the address is same as already geocoded
address

      function placeMarker ( existing_map, existing_address,
popup_text, existing_icon, x_dev, y_dev, flag){
        //Place a new marker
        var geocoder = new GClientGeocoder();
if( flag == 0)
{

 geocoder.getLocations(existing_address, function(response) {
          if (!response || response.Status.code != 200) { alert
(response.Status.code + " not found"); return;}
          place = response.Placemark[0];
          point = new GLatLng((place.Point.coordinates[1] + x_dev),
(place.Point.coordinates[0] + y_dev));
debugger;
          l_point.elements["l_point"].value = point;
          var marker = new createMarker(point, popup_text,
existing_icon);
          existing_map.addOverlay(marker);
        });
}
else
{
debugger;
var g_point = l_point.elements["l_point"].value;
          var marker = new createMarker(g_point, popup_text,
existing_icon);                   //ERROR AT THIS LINE (G_POINT HAS
THE VALUE " ")
          existing_map.addOverlay(marker);
}
      };

How can i resolve this.
Kindly help.

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.


Reply via email to