For starters see:
http://www.econym.org.uk/gmap/geomulti.htm

As you are doing a DB lookup, does that mean you already have
geocoding in your DB?


As already mentioned you can use function closure, just wrap your
geocoder.getLatLng call in a function (like createMarker is)


2009/12/8 Scott Kustes <[email protected]>:
> I have an issue when placing my map markers.  All of the have the same
> info on the pop-up window, even though the markers are placed
> correctly.
>
> URL: http://bodyfitburn.com/fitnessdirectory/directory/
> Search by: 40217
> Suspected issue: GLatLng call in setMapMarkers
>
> I assume the asynchronous nature of GLatLng is causing the issue and
> the JS loop is getting to the end before the callback function gets
> invoked the first time.  Do I need to geocode the addresses when they
> are entered into the database or is there a way to make sure the
> callback gets the right data?
>
> --
>
> 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.
>
>
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--

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