On Dec 30, 12:53 am, George <
colorix.stu...@gmail.com> wrote:
> Ok, this problem was solved with the use of function to create markers
> and their infowindows, but now some more interesting one.
http://tripcatcher.ru/guide/region/5click in right block "Посмотреть
> карту Европы" then you will get map processing code ajax and it'll
> execute
> this code won't set any markers it'll just console.log nessasury data
> to make this markers informative later.. and it gives me empty arrays.
> look like geocode works in asynchronous way.
It does.
> any ideas how to set
> different contents for different windows?
Use function closure to connect the infowindow contents to the marker
(createMarker function)
Use function closure to connect the address with the geocoded
coordinates
Beware, geocoding is subject to rate limits and a quota, so it is
better not to geocode lots of known addresses each time your page
loads, geocode them off-line, save the coordinates and use those to
create the markers on your map.
-- Larry