Lawrence
unread,Apr 25, 2011, 7:59:55 PM4/25/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
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.