Bumped in the hope of any knowledgeable people taking a look at this.
Does this seem like a bug?

On Jun 16, 8:21 pm, CarlEd <[email protected]> wrote:
> No - I create the polygons like this:
>
> function createPoly(polyName, polyPath) {
>
>     p = new google.maps.Polygon({
>         paths: polyPath,
>         strokeColor: "#FF0000",
>         strokeOpacity: 0.7,
>         strokeWeight: 2,
>         fillColor: "#FF0000",
>         fillOpacity: 0.20,
>         clickable: false
>     });
>
>     p.setMap(map);
>     return p;
>
> ...and I then do: geoFenceArray[i].setOptions({ clickable: true });
> which works.  However, I cannot then turn "clickable" back off again,
> which I am starting to believe is a bug?  "setOptions" has to be there
> to allow these options to be set, surely?
>
> On Jun 16, 7:20 pm, Nathan Raley <[email protected]> wrote:
>
>
>
> > > I'm not 100% sure if you can change the clickable options after creation 
> > > of
> > > the polygon.  From what you describe it is turning off the event handling
> > > for the click event of the polygon, but since it was initialized as
> > > clickable you are still getting the cursor change when moving over it.
> > > You may have to destroy the polygon and recreate it with the clickable
> > > option being turned off in order of it to work.
> > > Did you try that yet?

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