Hi there,

This is something I've only recently noticed and can only think it was
brought on by an API update. Not sure if it's a bug, but thought I
should bring it up in case someone else runs into the same issue.

I had a polygon construct with the following options:

myPoly = new google.maps.Polygon({
                paths: someCoordinates,
                strokeColor: "#0000ff",
                strokeOpacity: 0.9,
                strokeWeight: 2,
                fillColor: "#0000ff",
                fillOpacity: 0.0
        });

What I noticed recently was that Firebug would display the following
warning:

"canvas: an attempt to set strokeStyle or fillStyle to a value that is
neither a string, a CanvasGradient, or a CanvasPattern was ignored"

Again I know that Firebug did not used to throw this warning so figure
it must be a recent API update that brought this up.

Anyways, I tried other values for the fillOpacity option and found
that it just didn't like zero (0 or 0.0). Any other value was fine. So
in the end my "fix" is to change the fillOpacity from 0.0 to 0.01.

-Lawrence.

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