Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Marker, InfoWindow and Shadow not rendering correctly in Google Maps Javascript API?

I copied the Google Maps AutoComplete JS example from the demo here:

Places Map AutoComplete Demo

Everything works great except for rendering the infowindow and shadow. I can't figure out why. At first I thought it was because of I manually set the max width of my map, but it still renders incorrectly when I turn off all my CSS rules.

Here is an example from my client-side code:

enter image description here

Here is a screenshot from the demo

enter image description here

Any ideas?

Thanks! ~Dan

@thoughtpunch

like image 477
thoughtpunch Avatar asked Nov 25 '11 18:11

thoughtpunch


1 Answers

Had the same problem, debugging revealed the problem to be with the following CSS snippet:

img { max-width:100% }

Removing/constraining the rule fixed it.

like image 198
ptrn Avatar answered Jan 03 '23 21:01

ptrn