Hi, please see inline.

On Tue, Mar 22, 2011 at 8:41 AM, thebit <[email protected]> wrote:

> I think I solved the problem:
> I changed
> infowindow2.open(map,loadedMarker);
> WITH
> infowindow2.open(map,this);
> and "magically" it works!
>

Yes, you should use 'this' to access the current pointed object which is
marker.


> (I test it by local pc: it's not online).
>
> It's right my solution?
>
Your solution is right for the above error but not really effiecient for the
infowindow[i]. You try to make infowindow as an array which I don't
understand your purpose. Are you try to manage it in future?

However, that is a programming practice issue which is not really related
much on MAP API.


>
> On 22 Mar, 13:33, thebit <[email protected]> wrote:
> > 1) I forgot to correctly reaname loadCoordinates[2]['lng'])in
> > loadCoordinates[2]['lng'] (it was a test).
> > 2) I tried to rename infowindow[2] in infowindow[i] but the map was
> > not showed. For this I re-put infowindow2.
> > Now, I created another webpage in which I utilised infowindow[i]
> > instead of infowindow2:
> http://thebit.altervista.org/maps/testAddMarker5_web_withI.php
> > but there is an error!
> >
> > On 22 Mar, 12:09, Andrew Leach <[email protected]> wrote:
> >
> >
> >
> > > On 22 March 2011 10:58, thebit <[email protected]> wrote:
> >
> > > > Hi,
> > > > I tried to rename "infowindow2" in "infowindow[i]" but it does not
> > > > works: the page is not loaded.
> >
> > > That wasn't what was suggested. You should continue to use
> > > var infowindow2 = new google.maps.InfoWindow(
> >
> > > and replace [2] in the following line with [i]:
> > > position: getPosition(loadCoordinates[2]['lat'],
> loadCoordinates[2]['lng'])
> >
> > > so it looks like this:
> > > position: getPosition(loadCoordinates[i]['lat'],
> loadCoordinates[i]['lng'])
> >
> > > This means that position will vary according to the loop counter,
> > > rather than always using the value of loadCoordinates[2].- Nascondi
> testo citato
> >
> > - Mostra testo citato -
>
> --
> 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.
>
>


-- 
Best and Regards,
Chin Hua Kong

-- 
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