Hi again Enoch,

Very sorry for not replying sooner.

Maybe I miss-understand the design. The problem appears to be quite obvious
to me (runing on IE8 and Firefox):



When strokeWeight is set to 0, the border and filling will have the same
color for all overlays. Also when strokeWeight is set to 1, the polyline
will use the same color as set.



But when strokeWeight is set to 1, all other overlays appear to have this
issue: the border color is no longer the same as the filling and the border
color is no longer controllable.



Attached please find the code I tested from
http://gmaps-samples-v3.googlecode.com/svn/trunk/drawing/drawing-tools.html



The only change I made to reproduce the issue is 1. added strokeWeight: 1
to polylineOptions, 2. changed strokeWeight from 0 to 1 for polyOptions.


Is this behaviour as designed?


Thanks,



Qunhuan


On 10 January 2012 00:30, Enoch Lau (Google Employee)
<[email protected]>wrote:

> ok, sure.
>
> Just a stab in the dark: are you changing the stroke weight like this?
>
>     drawingManager.set('circleOptions', { strokeWeight: 1 });
>
> If you are, you need to set the color again, otherwise it gets clobbered:
>
>     drawingManager.set('circleOptions', { strokeWeight: 1, strokeColor:
> 'red' });
>
> Enoch
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/0Txp7GOmKZQJ.
>
> 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.
>

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


<<< text/html; charset=US-ASCII; name="index.html": Unrecognized >>>

Reply via email to