Hi everybody
I'm porting an existing app over from v2, but I'm hitting a stumper in
the most surprising of places: labels on clickable polygons.
Previously on v2, I was using the excellent Elabel extension but
there's no official port for v3. I did find an unofficial Elabel v3
port, but it looks like the Google-released InfoBox library (http://
code.google.com/p/google-maps-utility-library-v3/wiki/Libraries) is
the recommended way to go.
v2 Mockup (with elabel):
http://li-ping.com/protos/polygons_v2.html
v3 Mockup (with infobox):
http://li-ping.com/protos/polygons_v3.html
In the v2 page, the polygon area covered by the label still responds
to mouse clicks (click on the label to see) and label is not obscured.
In v3, I cannot seem to get the click on the label area to propagate
down to the polygon. The InfoBox lib allows the pane to be specified,
and I've tried using different panes (above and below the polygon
pane).
When using a higher pane, the label is not obscured by the polygon but
click doesn't register. When using a lower pane, the click registers,
but the label is obscured. I cannot seem to have it both ways like in
v2.
Am I missing something? Does anyone have any idea how to fix this?
Thanks!