Quantcast
Viewing latest article 4
Browse Latest Browse All 17

Set the Width for a Google Maps InfoWindow

Working with Google Maps v3 is way fun.

If you’re a masochist.

Image may be NSFW.
Clik here to view.
Infowindow width

Scrolling InfoWindow

It seems like there’s no easy way to set the width of an InfoWindow. You can set the minWidth parameter, but that does nothing.

If you have content that exceeds the InfoWindow window, you get this: a scrolling box. That’s terrible.

The solution is horribly easy.

Image may be NSFW.
Clik here to view.
Looking Through the InfoWindow

The solution presents itself.

This will solve all your problems, and make you wish you had the past two hours back of your life: use the provided .gm-style-iw class to style the InfoWindow content container.
/* Just use .gm-style-iw */
.gm-style-iw {
width: 300px;
min-height: 150px;
}

The post Set the Width for a Google Maps InfoWindow appeared first on Katz Web Services.


Viewing latest article 4
Browse Latest Browse All 17

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>