--
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.
Hi Berry,
We have a user agent parser that extracts the rendering engine and version from the browser useragent. I only apply the workaround (width=height=255px) to IE version 8. Watch out for non-IE browsers which claim to be IE, as historically some webservers only supported IE.
We set coordsize to 1 1 and coordorigin to 0 0 if I recall correctly. Apparently this works around some VML coordinate bugs. VML is happy to overflow.
We now implement all hit detection in javascript. This allows layers to "play nice", so we can click through an SVG or canvas element's bounding box. I haven't yet converted to use Canvas by default, but as you.indicate this may be mucb faster than SVG.
Cheers
Ben
On Feb 7, 10:24 pm, Ben Appleton <apple...@google.com> wrote:Thanks Ben,
> Hi Berry,
>
> We have a user agent parser that extracts the rendering engine and version
> from the browser useragent. I only apply the workaround (width=height=255px)
> to IE version 8. Watch out for non-IE browsers which claim to be IE, as
> historically some webservers only supported IE.
>
> We set coordsize to 1 1 and coordorigin to 0 0 if I recall correctly.
> Apparently this works around some VML coordinate bugs. VML is happy to
> overflow.
>
> We now implement all hit detection in javascript. This allows layers to
> "play nice", so we can click through an SVG or canvas element's bounding
> box. I haven't yet converted to use Canvas by default, but as you.indicate
> this may be mucb faster than SVG.
>
> Cheers
> Ben
I use:
if (document.all) if (window.XMLHttpRequest)
to isolate IE7+. Do you know of similar capabilities tests for IE8 &
IE9 ? IE9 supports CANVAS. IE8 does not.
I am using coordsize 1 1 & coordorigin 0 0 also because every other
attempt failed. Without a useable VML installation on my PC, I am
flying blind.
The only drawback to CANVAS I have encountered is the inability to
recolor polys on the fly. Painting over the poly does not preserve
its zIndex. It also blends differently with other overlapped polys.
Repainting whole tiles is too slow for rollovers.
Do you use "point-in-poly" analysis for hit detection ? I let CANVAS
do it for me in an off-screen CANVAS element. It involves just one
tile. It is actually quite fast.