I'm new to the group so I didn't know the diference between Reply and
Reply to author. Andrew let me know why this was happenig:

On Nov 29, 3:33 pm, Andrew Leach <[email protected]>
wrote:
> sk replied in a private mail:
>
> this refers to the object Map, and this.gmap refers to the object
> GMap2, that is, the same as in the example is refered by the var map.
> As you can see, in the line 50 I use this.gmap to add the marker to
> the overlay, and it works fine, so I really don't understand why it
> doesn't work in the line 57.
> <<
>
> The point is that line 57 is inside the handler function, so "this"
> inside that function will be different from "this" outside it. In fact
> it refers to the marker that's been clicked, not the GMap2 object.
>
> Andrew
>
> PS: Please direct all replies to the Group so everyone can benefit.

--

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