Hey..... thank you all.....it worked for me...
i used
marker.openInfoWindowHtml('<div
style="width:250px;height:300px;">...............</div>');
thanks,
Sid
On Jun 24, 6:24 pm, "[email protected]" <[email protected]>
wrote:
> On Jun 24, 2:44 pm, Sid <[email protected]> wrote:
>
> > Hi,
>
> > I am using the following code to create marker and infowindow in
> > google map. But the data is overflowing from the infowindow. Can
> > someone please tell me how can I change the size of infowindow so that
> > all the information can fit in.
>
> That code looks to be v2 code. The v2 discussion group
> is:http://groups.google.com/group/google-maps-api/topics
>
> The most common reason for the contents to overflow the
> infowindow:http://econym.org.uk/gmap/css.htm
>
> If that doesn't help, please read and follow the posting guidelines
> and post a link to your map, not code.
>
> http://groups.google.com/group/Google-Maps-API/web/suggested-posting-...http://groups.google.com/group/google-maps-api/web/why-including-a-li...
>
> -- Larry
>
>
>
>
>
> > // Create a base icon
> > var baseIcon = new GIcon();
> > baseIcon.shadow = "http://www.google.com/mapfiles/
> > shadow50.png";
> > baseIcon.iconSize = new GSize(20, 34);
> > baseIcon.shadowSize = new GSize(37, 34);
> > baseIcon.iconAnchor = new GPoint(9, 34);
> > baseIcon.infoWindowAnchor = new GPoint(9, 2);
> > baseIcon.infoShadowAnchor = new GPoint(18, 25);
>
> > // Creates a marker whose info window displays given
> > information
> > function createMarker(point, name, location, phonenum,
> > address, latitude, longitude, urladdress, locationNumber) {
> > var icon = new GIcon(baseIcon);
> > icon.image = "images/markers" + locationNumber + ".png";
> > var marker = new GMarker(point, icon);
> > GEvent.addListener(marker, "mouseover", function() {
> > marker.openInfoWindowHtml('<img src="test.gif" width=162
> > height=50>'+ '<br>' +'<a target="_blank" href="http://maps.google.com/
> > maps?f=q&hl=en&q=from:'+homeSpatialInfo.fromAddress+'+to:'+latitude
> > +','+longitude+'('+urladdress+')'+'">Directions</a>'+ '<br>' +
> > '<br>'+name + '<br>'+ location+ '<br>' +address + '<br>');
> > });
> > return marker;
> > }- Hide quoted text -
>
> - Show quoted text -
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.