Saturday, October 23, 2010

[Google Maps API v2] Re: GEvent.addListener isn't working as expected

On Oct 23, 10:24 pm, Kashins DaWeeD <kashin...@gmail.com> wrote:
> > Sounds like pitfall #3 in Mike Williams' tutorial page here:http://econym.org.uk/gmap/basic1.htm
>
> >   -- Larry

Did you look at the example Larry gave?

You use a createMarker function like Mike's, which binds each of the
markers' event listeners to the right marker via function closure; but
you don't use an equivalent createPolyline or createPolygon function.
That means that you don't get function closure on your shapes and
lines and fall into Pitfall Number Three.

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate