Here are a couple of thoughts, which I haven’t had time to test:
1. Use a GEvent "click" and "mousemove" as an optional way of tracking
the clicks on the map.
a. IE8 will report the "mousemove" GLatLng correctly so at the
moment of the click grab the mousemove’s GLatLng, here’s one idea on
how to do it - http://lab.gmtplusone/google-maps/click-event-issue/#the-code.
b. Compare the mousemove’s GLatLng received in a to the area of
your GPolyline. If it's within the GPolyline area then execute the
click as a click on the GPolyline.
2. Try using the GTileLayer
http://code.google.com/apis/maps/documentation/reference.html#GTileLayer
with an image that has the GPolyline as you would have “normally”
drawn it with the Google Maps API.
Overall, it seems to be part of a continuing saga that a workaround
needs to be figured out for another IE product, it really is a
pity ...
On Oct 1, 3:08 pm, Alexandre Dube <[email protected]> wrote:
> Hi,
>
> webbirder wrote:
> > I believe you will find a solution here
> >http://lab.gmtplusone.com/google-maps/click-event-issue
>
> Yes, that clearly demonstrates the problem I'm facing, but unfortunately
> the solution demonstrated in the example won't work for me since I'm
> trying to click on existing GPolylines and since in IE8 the third
> argument (overlayLatLng) is never passed, I get the last "mousemove"
> recorded position instead that is always outside the polyline (because
> when overing an overlay, the "mousemove" registrered on the map object
> is not triggered).
>
> So, back to square one, unfortunately. Any more clues ?
>
> --
> Alexandre Dubé
> Mapgearswww.mapgears.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---