Hi Marc,

I suggest rendering a thicker, virtually-transparent polyline underneath.
 If you set strokeOpacity to 0.01 and strokeWeight to eg. 5, the line should
be clickable but not visible.  I haven't tried this though, so I'd be
interested to hear if this works for you.

Cheers
Ben

2010/3/3 Marc Lacoursière <[email protected]>

> Hello!
>
>
> I have a mapping application that draws polylines having a width of 2
> pixels. My current goal would be to allow users to select them easily.
> Here is how I register the click events:
>
> google.maps.event.addListener(path, 'click', function() {
>    Ext.Msg.alert('click on track');
> });
>
> It's working very well, except that the user has to click precisely on
> the little line to make it work. As a programmer, I can consider
> myself as a power clicker, but I sometimes have a hard time to aim
> effectively. That's far from being user friendly.
>
> Is there a way I could still draw thin lines but have a wider click
> area?
>
>
> Thank you very much, I love the new API!
>
> Marc Lacoursière
> RooSoft Computing inc.
>
> --
> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
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 [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-js-api-v3?hl=en.

Reply via email to