InfoBox-left tab

I am creating a map using the Google Maps API and the InfoBox extension: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/docs/reference.html

I can add a general addition to Infobox, for example:

var infoOptions = {
disableAutoPan: true,
closeBoxURL: "",
pixelOffset: new google.maps.Size(20, 0),
boxStyle: { background: "#ffffff", padding:"4px" }
};

but when I try to change this as just the remaining filling, it does not display the map:

var infoOptions = {
disableAutoPan: true,
closeBoxURL: "",
pixelOffset: new google.maps.Size(20, 0),
boxStyle: { background: "#ffffff", padding-left:"4px" }
};

The only change I make between the two is to add "-left" to the end of the fill stylist. Any help would be greatly appreciated. Thank.

+3
source share
1 answer

In the end, I figured out how to make it work. The trick is to use the HTML DOM properties instead of CSS, so in my case it would be:

boxStyle: { background: "#ffffff", paddingLeft:"4px" }

instead of what it was before.

+1
source

All Articles