Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modern rectangular InfoWindow on maps.google.com

How can I style google maps v3 InfoWindow to achieve the same style as on maps.google.com?

like image 675
Lambder Avatar asked Jul 04 '11 10:07

Lambder


3 Answers

Rectangular InfoWindows are now the default style since Maps API 3.7 (current nightly version).

like image 101
Chris Broadfoot Avatar answered Sep 20 '22 16:09

Chris Broadfoot


The API does not provide for robust styling of the InfoWindow objects (or, if it does, it is not documented). You can see what options are available at http://code.google.com/apis/maps/documentation/javascript/reference.html#InfoWindowOptions. As you can see, right now, there's nothing for things like rounded corners vs. not-rounded corners, etc.

So, sorry to say, it would seem like you are stuck messing with stylesheets, at least at the current time.

like image 39
Trott Avatar answered Sep 20 '22 16:09

Trott


Actually thats the first time i'm seeing this. Im sure with google's new design update they are sure to update the Api windows. For the meantime I would use: Google Maps: How to create a custom InfoWindow?

like image 33
Robert Avatar answered Sep 18 '22 16:09

Robert