On Dec 30, 12:53 am, George <[email protected]> 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

>
> On 30 дек, 03:17, "[email protected]" <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Dec 29, 3:09 pm, George <[email protected]> wrote:
>
> > > this code is running in cycle setting markers and infowindows by name
> > > of input objects.. but in fact only the last maker get its infowindow
> > > and all other makers refernse their clicks to this marker
>
> > Sounds like pitfall #3 in this page of Mike Williams' v2 tutorial 
> > :http://econym.org.uk/gmap/basic1.htm
>
> > Please read and follow the posting guidelines and post a link to your
> > map that exhibits the problem, not 
> > code:http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e
>
> >   -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to