Martin, it works like a charm, many thanks. I guess you haven't used
it in conjunction with markerclusterer yet, because it complains about
a missing "setVisible" function in SimpleMarker... I just added an
empty one which does the trick.

I think though that I'll head eventually into a different direction:
markerclusterer doesn't really need the entire marker until it really
shows it on the map, so I think I can just provide it with an empty
stub that will deploy to the full marker when onAdd is called.

On Feb 6, 8:58 am, George Georgovassilis <[email protected]>
wrote:
> Hello bratliff & Martin,
>
> Thank you for your answers.
> @bratliff: The whole point is that the singleton listener can't know
> which marker received the click since the only parameter the listener
> function gets is a MouseEvent, which does not expose that information.
> So, in your example, "this.george" is either not available to the
> listener or would always point to the last marker.
>
> @Martin: Thank you, this looks nice - I'm going to try it right away.
> Pamela once talked about a lightweight marker her team implemented,
> but the catch was that it didn't allow for events... does your
> SimpleMarker support events?
>
> Best,
> G.
>
> On Feb 5, 9:38 pm, Martin Matysiak <[email protected]> wrote:
>
> > Also if you shouldn't already do it, with such a high marker count
> > lightweight markers will probably improve the performance of your website,
> > if you don't need all the features of a common google.maps.Marker (sample
> > implementation 
> > here<http://blog.martin-matysiak.de/2011/01/a-lightweight-marker-for-googl...>
> > ).

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