rjhazarika-712 / 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

Infobox and border-radius #251

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi to all!

I'm trying to put border-radius style inside boxStyl of an infobox like this:

var myOptions = {
                 content: ''
                ,pixelOffset: new google.maps.Size(-140, 0)
                ,boxStyle: { 
                  background: "white"
                  ,width: "280px"
                  ,-webkit-border-radius: "5px"
                  ,-moz-border-radius: "5px"
                  ,border-radius: "5px"
                 }
                ,closeBoxMargin: "10px 2px 2px 2px"
                ,closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif"
        };

But I get a javascript error.

What can be wrong?.

Original issue reported on code.google.com by davida...@gmail.com on 28 Apr 2013 at 4:40

GoogleCodeExporter commented 9 years ago
You're in Javascript, not a CSS file, so try these lines instead:

                  ,WebkitBorderRadius: "5px"
                  ,MozBorderRadius: "5px"
                  ,borderRadius: "5px"

Original comment by garylitt...@gmail.com on 7 Jul 2013 at 7:36