5

Here is a working version

http://jsfiddle.net/tH78C/

Here is a broken version (Zooming widget is no longer properly displayed) with Bootstrap styling

http://jsfiddle.net/3sjAU/

Why does it break?

4 Answers 4

11

You can also fix this for individual maps e.g.:

.googleMapContainer img { max-width: none !important; } 
Sign up to request clarification or add additional context in comments.

2 Comments

This is a much more portable answer, particularly when you don't have control over the bootstrap source (like using a CDN).
This is more elegant than fiddling with the bootstrap CSS.
4

In the Bootstrap.css line 69 max-width: 100%; is causing the issue.

img { max-width: 100%; <-- vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; } 

You can remove it and if needed again just specify a new class .newclass {max-width:100%} and add it to the image.

Comments

0

I fixed it with a slight variation on what was listed here.

.gm-style img { max-width: none; } 

Comments

0

No need to specify a new class just copy this code

.angular-google-map img { max-width: none !important; } 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.