PDA

View Full Version : controlling the size of the info window


michael.presneill396601
12-19-2009, 04:49 AM
For some reason the bubble which holds the postal address is huge and contains several blank lines underneath the address which fill up the google map.

I have just started using Pro Maps for Google with Dreamweaver CS4 and copied below is the java script for the wagmp_map_1.js which holds the address.

The site should hopefully go live later today. But any ideas why these several blank lines are underneath the address within the bubble ?

Thanks

var address_0 = {
street: 'Greenway Road',
city: 'Galmpton, Brixham',
state: 'Devon',
zip: 'TQ5 0LN',
country: 'England',
infowindow: 'custom',
infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Torbay Tigers Basketball Venue</strong><br />Churston Ferrers Grammar School<br />Greenway Road, Brixham,<br />TQ5 0LN</span>',
full: '50.395230,-3.558787',
isdefault: true,
addressType: 'coordinates',
loop: '',
latitude: '50.395230',
longitude: '-3.558787',
markerStyle: 'Google Traditional (flat)',
markerColor: 'Pacifica'
};

Eric Mittman
12-21-2009, 09:22 AM
When you are using the custom info window you can control what is displayed in here with your own html. If you are seeing extra blank lines then they are probably coming from some css that you have applied in some way. Based on what you have here for the info window text it seems that the display should take up about 4 lines.

Do you have a link where this can be seen on a site, this might give us a better idea of what is going on.

Heckie
06-02-2010, 08:36 AM
Having a similar problem - my bubble seems to have loads of white space under the text. Heres a link: http://www.stay-hebrides.com/2010/findus.php

and the bit of code:

var address_0 = {
street: '[Address]',
city: '',
state: '',
zip: '',
country: '',
infowindow: 'custom',
infowindowtext: '<span style="font: 12px Arial, Helvetica, sans-serif; padding: 0px; margin: 0; color: black;"><strong>Blue Reef Cottages</strong><br />Scarista, Isle of Harris HS3 3HX</span>',
full: '57.832152,-7.034640',
isdefault: true,
addressType: 'coordinates',
loop: '',
latitude: '57.832152',
longitude: '-7.034640',
markerStyle: 'Google Traditional (flat)',
markerColor: 'Pacifica'
};


do you like my map as background image?

Eric Mittman
06-02-2010, 01:47 PM
While doing a bit of research into this it seems that the info window will maintain a minimum size that is around 240x90. I saw quite a few references to this but I did not see any viable work arounds other than using a third party info window. It seems this is a limitation of the info window.

I do like the map and how you have set it as the background. You may be able to put an image in the info window to have it fill in any of the extra space. I have done similar things for info windows but not for the size specifically. To add in an image you would need to select the custom info window and then you can just add in your own <img tag.