InfoBubble : some issues when putting it at work

47 views
Skip to first unread message

Denis Gervalle

unread,
Oct 19, 2010, 8:18:03 AM10/19/10
to google-maps-utility-library-v3
Hello,

We have started using InfoBubble for a real life case, and we have
suffered of some issues/limitations:
- setTabActive use a index which is 1 based and removeTab use an
index which is zero based.
- no event when the user change tab
- click event on the map when clicking on the bubble
- no getTabActive() function
- no refreshTab() to refresh the tab content, calculating size etc...
- no pixelOffset option
- no removeAllTabs and no getTabCount

So we have added (locally for now) these features as well as some
redraw optimisation .
WDYT ?

We have still an unsolved issue related to the calculation of the
bubble size.
Calculation is currently done without applying CSS style (like what is
does on the original infoWindow), and this is obviously a annoying
limitation. Does anyone knows a way to properly calculate a rendered
size ?

Thanks,

Denis

Denis Gervalle

unread,
Oct 19, 2010, 4:27:50 PM10/19/10
to google-maps-utility-library-v3
Well, after a couple of hours more on the size issue, I have finally
have it working.
The issue was due to the way the calculation of the size is done.
For calculating, the elements are put in the document body, which does
not have the same cascading of CSS than what happen when the same
elements are rendered in the map. I have changed that to use the map
div for the place for calculation (in place of body), and it have
almost fixed the problem. Almost, because, I had experience scrollbar
in excess in Chrome, and unexpected text wrapping in IE/FF. I have
solve both using appropriate overflow style and increasing the
calculated width by 1px to solve the IE/FF issue.

Denis
Reply all
Reply to author
Forward
0 new messages