Why does CSS style distort Google map scaling?

Here is the working version

http://jsfiddle.net/tH78C/

Here is the incorrect version (the zoom widget no longer displays properly) with Bootstrap style

http://jsfiddle.net/3sjAU/

Why is this interrupted?

+5
source share
4 answers

There is a problem in the Bootstrap.css 69 line max-width: 100%;.

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

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

+4
source

You can also fix this for individual cards, for example:

.googleMapContainer img {
    max-width: none !important;
}
+11
source

, .

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

,

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

All Articles