Reply
Google Maps Info Window Size Problems
Old 10-19-2007, 04:09 PM Google Maps Info Window Size Problems
collyer_1's Avatar
Extreme Talker

Posts: 169
Location: Southern Alberta, Canada
I'm building a map using the google maps API that displays the representatives for our company. Unfortunately google maps is drawing the info window much too wide. You can see what I mean here: www.hbxcontrols.com/about/dealer_locator.php

Is there something I can add to my code to limit the width of the info window?
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
When You Register, These Ads Go Away!
Old 10-26-2007, 02:21 PM Re: Google Maps Info Window Size Problems
collyer_1's Avatar
Extreme Talker

Posts: 169
Location: Southern Alberta, Canada
Doesn't anyone have an idea?
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Old 10-26-2007, 11:54 PM Re: Google Maps Info Window Size Problems
Skilled Talker

Posts: 79
ive had the same problem.

When you click on link to page(to copy the code) there is an extra window that opens up a dialogue window with additional options. Select custom, and make sure you zoom in and position in that windowhow you want the map to look.

Grab that code and put it on your page.
scorch is offline
Reply With Quote
View Public Profile
 
Old 10-27-2007, 01:18 AM Re: Google Maps Info Window Size Problems
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Sorry dude...just saw this post.

If you explicitly define width and height for your map div using CSS, the map will fit within the constraints.

e.g.
Code:
#map {
    width:  520px;
    height:  300px;
}
will ensure that the Google map fits in a 520x300 pixel div.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-27-2007, 01:37 AM Re: Google Maps Info Window Size Problems
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
Or, if you want to control just the info bubble, the only way I've figured out is to use line breaks.
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 11-05-2007, 12:20 PM Re: Google Maps Info Window Size Problems
collyer_1's Avatar
Extreme Talker

Posts: 169
Location: Southern Alberta, Canada
CSS couldn't control the info windows within the map

The issue was resolved using line breaks, it's not the prettiest way to get the job done but it works.

Last edited by collyer_1 : 11-05-2007 at 12:36 PM.
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Old 09-23-2008, 04:20 AM Re: Google Maps Info Window Size Problems
jason_alan's Avatar
Average Talker

Posts: 15
Name: Jason
Location: Seattle, WA
Since you can put html in your infowindow, i enclose everything with a div with an explicit width and it seems to work fine for me.
jason_alan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Google Maps Info Window Size Problems
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 10.13006 seconds with 12 queries