I'm trying to open an info window for a marker, with default and
maximized content. The default content is a small thumbnail image,
while the maximized content is a larger version of the same image.
Since the large version of the image is a known size, I want to limit
the maximized info window's size to that. When I try to use the
maxWidth option, it doesn't do anything. The maximized info window is
673px, not the 400px that I specified.
var screen_62ccbb57fcc84df8b5b93a9b5bda1e0f = new GMarker(new GLatLng
(0.90087890625, -39.5068359375, false));
map.addOverlay(screen_62ccbb57fcc84df8b5b93a9b5bda1e0f);
screen_62ccbb57fcc84df8b5b93a9b5bda1e0f.bindInfoWindowHtml(
'<img src="/img/maps/screenshots/dys_assemble/1.75.jpg" /
>',
{maxWidth:400,maxContent:'<div style="width:400px"><img
width="400" src="/img/maps/screenshots/dys_assemble/1.400.jpg" /></
div>'}
);
http://www.dystopia-stats.com/map/dys_assemble/testmap
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---