Ber79AtPixelario / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Adding class to InfoBubble container as well as background class #198

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I thought i'd post this here, my code modification so there is a class I can 
style on the container as well as the background class.

modify these two lines  (around line 233)

  var content = this.content_ = document.createElement('DIV')
  contentContainer.appendChild(content);

new code

  var containerClass = 'map-tooltip-container';
  var content = this.content_ = document.createElement('DIV')
  contentContainer.appendChild(content);
  contentContainer.setAttribute("class", containerClass);

Took me hours to figure out, hope this can be helpful to someone else.

Cheers

Original issue reported on code.google.com by nwrigh...@gmail.com on 20 Sep 2012 at 5:39