On Aug 25, 8:49 am, monsterag <[email protected]> wrote:
> Hello,
> Problem:
> my infowindobackground ist sometimes not big enough to hold all the
> content.
> The text then is simply display over the map background and flowing
> over the white background.
> Then i close the Infowindow and reopen it and then it magically fits
> all the content.
> Any possibility to avoid the first overflow?

Define the size of the content of the infowindow, particularly images,
or load the images into the cache before opening the infowindow.

-- Larry


> Thanks for any help
>
> This is the used code:
>
> function createMarker(point, info, markericon, tip){
>              var marker = new GMarker(point,{icon:markericon,
> title:tip});
>              GEvent.addListener(marker, "click", function() {
>             marker.openInfoWindowHtml(info);
>             });
>             return marker;
>             }
>         function initialize() {
>
>         if (GBrowserIsCompatible()) {
>         var map = new GMap2(document.getElementById("mapek"));
>         map.setMapType(G_SATELLITE_MAP);
>         map.setUIToDefault();
>   map.setCenter(new GLatLng(53.8837401263,10.6364634633),17);
>   map.addControl(new GMapTypeControl());
>   var icon_start = new GIcon();
>   icon_start.image = "/images/logo/13/binder.png";
>   icon_start.iconAnchor = new GPoint(44,54);
>   icon_start.infoWindowAnchor = new GPoint(44,54);
>   var marker = createMarker(new
> GLatLng(53.8837401263,10.6364634633),"<div id='popup'><div
> id='titel'></div><div class='popupbild'><a href=../einzelbild?bild=./
> picture/363/138936705b.jpg target = '_blank'><img src='/images/picture/
> 363/small/138936705b.jpg'></a></div><div class='popupbild'><a href=../
> einzelbild?bild=./picture/364/138936706b.jpg target = '_blank'><img
> src='/images/picture/364/small/138936706b.jpg'></a></div><div
> class='anschrift'>Teichstr.10<br> stockelsdorf</div><div
> class='kurzinfo'>MUCH mUCH TExt 20 Lines sometimes </div><div
> class='popup_linkadresse'><a href='http://' target='_blank'></a></
> div><div class='popup_ansprache'></div><div class='maklerlink'><a
> href='http://www.3dsv.de'target='_blank' >www.3dsv.de</a></
> div>",icon_start,"test");
>   map.addOverlay(marker);
>          }}

-- 
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.

Reply via email to