1) I don't want accurate GIS, just a consistent UI experience. Right
now, if you have several polylines and want to change the cursor on
mouseover, for example, the UI is very, very bad, because of the
problem I described.

2) The click approach seems to be about right, the onmouseover is a
different beast. From my understanding, a diagonal line results in a
big rectangle that triggers mouseover.


On Jan 28, 9:00 pm, Rossko <[email protected]> wrote:
> > In my experiments it seems that, because the line is diagonal, the way
> > that mouseover/out are triggered isn't pixel perfect but instead uses
> > a rectangle bound of the polyline. (I have mouseOutTolerance:1)
>
> You're right, it is an approximation.
> This old 
> bloghttp://googlemapsapi.blogspot.com/2007/09/v288-clickable-polylines-po...
> explains how they do it for clicks (and presumably since then, use the
> same method for mouseover)
>
> > Isn't there a way to achieve what I want but be pixel perfect to the
> > line?
>
> Not with the API.  It's just a general purpose map display, not a full
> blown millimetre-accurate GIS.

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

Reply via email to