Hi Nianwei
The styling is not really a problem. I've experimented using the
InfoBox, RichMarker libs, and even the elabel v3 port I found but
nothing has worked so far at all with regards to the even propagation.
Thanks for your inputs though! I've submitted an issue based on the
discussion
Gary,
Capturing the label click is my last resort really the label can
overlap with a neighbouring polygon (example for a very vertically
narrow polygon). So clicking on the overlapping portion of the label
shouldn't trigger the event on the label's associated polygon.
I'll have to hold off
Ping,
Event propagation indeed seems to have some issues in V3. I think
part of the reason might be we want different behavior at different
use cases, and those are hard to design for a perfect configuration.
If you can make a good summary with examples and file an issue, the
Google team may
In your V3 example, because you've set InfoBox's
enableEventPropagation property to true, the click event passes from
the overlayShadow pane to the map itself -- as you've observed. I
believe the various V3 map panes are independent of one another so an
event originating in one pane does not get
Hi Gary
I've given your suggestion a try.
I've updated the v3 example to add labels to the overlayLayer pane
(which according to documentation
http://code.google.com/apis/maps/documentation/javascript/reference.html#MapPanes
is the pane where the polygons are). I've also bumped up the zIndex to
Ping,
Looks like there's no easy solution. You will probably have to keep
track of the polygon the label is associated with, then trigger an
event on the polygon when the label is clicked.
Gary
On Nov 30, 7:37 pm, ping liping@gmail.com wrote:
Hi Gary
I've given your suggestion a try.