Yes, thank you. I read there that polygons are by default clickable,
and in my newest map 
http://lovebunnies.luckypro.biz/01_stuff/roman_holiday/romanholidaymap.html
the ploygons themselves are indeed clickable. And they have a
mouseover that changes their color!

Clicking the polygon works fine. I get my InfoWindow pointing to the
polygon. But clicking the text in the sidebar creates an error in a
Googlescript  and Firebug says "a is undefined." The dreaded error.

I *think* the problem is that the code  "GEvent.addListener(gon,
"click", function(point)" in my polygon creator makes the sidebar
click expect that a map click has happened, setting a point, right?
There must be some way to write an escape for that, but it's beyond
me! Can you have two different, maybe named, click handlers? I see you
very kindly wrote a statement in the polyline clicker that defined the
point as "line.getBounds().getCenter()" but I don't see getCenter in
the documentation.

(Some hours later, after supper) Well, the d*mn routine works for
polygons, too. Will it always? Is it safe?

On Mar 11, 3:49 pm, "[email protected]" <[email protected]>
wrote:
> On Mar 11, 12:12 pm, BuckyE <[email protected]> wrote:

> > 2. Polygons won't click from the sidebar. PolyLINES will click fine.
> > Firebug shows an error with a Google script when a polygon is clicked
> > in the sidebar. Most of the posts I can search seem to predate
> > clickable polygons. Can anyone point me the way to make a sidebar
> > entry click a polygon?
>
> Did you see 
> this?http://code.google.com/apis/maps/documentation/reference.html#GPolygo...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to