Setting style: img max-width: 100%; breaks google maps zoom control.

141 views
Skip to first unread message

pcullen

unread,
Oct 1, 2011, 6:52:19 PM10/1/11
to google-map...@googlegroups.com

Rossko

unread,
Oct 1, 2011, 9:55:36 PM10/1/11
to Google Maps JavaScript API v3
> Any idea why this is happening?
>
> http://stackoverflow.com/questions/7471830/google-maps-api-v3-weird-u...

The map is mostly made up of images carefully laid out. If you mess
with the image's CSS, it breaks the map.

Pil

unread,
Oct 4, 2011, 3:25:00 AM10/4/11
to Google Maps JavaScript API v3
Have a look at the original image.
Now, would it really be a good idea if the image would be enlarged to
the maximum size of the sprite image in even one case?

http://maps.gstatic.com/mapfiles/mapcontrols3d6.png

So obviously the "Fluid Images" article isn't completely perfect.




On Oct 2, 12:52 am, pcullen <patrick.cul...@gmail.com> wrote:
> Any idea why this is happening?
>
> http://stackoverflow.com/questions/7471830/google-maps-api-v3-weird-u...
Reply all
Reply to author
Forward
0 new messages