The API uses 1 mouseover/mouseout listener per tile, not per poly. We catch events as they bubble up, then dispatch to the correct poly using event.target.
We use SVG or VML where available. These support fast restyling on rollover, though they are initially slower to render than Canvas.
> --
> 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-map...@googlegroups.com.
> To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
On Sep 14, 9:58 pm, Ben Appleton <apple...@google.com> wrote:
> The API uses 1 mouseover/mouseout listener per tile, not per poly. We catchWith just one pair of mouseover / mouseout event listeners for the
> events as they bubble up, then dispatch to the correct poly using
> event.target.
entire tile, how are you able to detect the mouse exiting one poly &
entering another poly in the same tile ?
> We use SVG or VML where available. These support fast restyling onWhich browser(s) do support CANVAS but do not support SVG ?
> rollover, though they are initially slower to render than Canvas.
> This hasn't turned up as a bottleneck in my profiling. We'd prefer not toI cannot profile it because I cannot avoid using the constructors.
> complicate the API without clear benefit. If you find otherwise, can you
> point me to a demo where these object allocations are more than eg. 10% of
> processing time?
I
refer you to Niko's comment in his original post. It consumes extra
memory which limits the number points the API is able to support.
Even experienced users specify the same redundant constructors for
every element of large arrays. The old API was able to offer both
without complications.