On Jul 9, 4:58 am, Luke Mahé <lu...@google.com> wrote:
> I've updated the MarkerClusterer to cluster on idle now, but the user
> experiences is a bit worse because it does the clustering when the user has
> finished dragging so they will notice the clustering happening.
>
> I could do something like cluster on bounds_changed if there is less than X
> markers where X can be defined in the constructor, but I will wait to see
> what people want before I do something like that :)
>
> -- Luke
> VP, Keepin' It Real

Can someone from Google please explain why an "OverlayView" "idle"
method in V3, IF IT EXISTS, is not ALWAYS called automatically at the
completion of EVERY drag / pan / zoom.  It would behave like the
"draw" method in V2 with "force=false".  It would eliminate the
requirement to define an "idle" event handler for each "OverlayView"
without which nothing useful can happen.  It would be the user's
responsibility to determine if the position change was insignificant.
It would require an "idle" method to be defined in the subclass to
supercede an "idle" method defined in the "OverlayView" prototype.

    OverlayView.prototype.idle=function{};

Alternatively, the API could test for such a method.

    If (this.idle) this.idle();

The same thing is being done now for the "onAdd" method.  I never use
it because it serves no useful purpose.  Its absence does not impact
my subclass.  Applications do not crash without it.

Arguing "too much overhead" is ridiculous.  An "idle" event occurs
very infrequently.  A simple test of which tiles are in view will
determine whether anything must be done.  If the visible tiles have
not changed, it can be dismissed in about a dozen statements.  If the
method was never defined, nothing will happen.

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to