Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Google Maps Info Window Size Problems
Old 10-19-2007, 03:09 PM Google Maps Info Window Size Problems
Extreme Talker

Posts: 170
Location: Canada
Trades: 0
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?
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
 
Register now for full access!
Old 10-26-2007, 01:21 PM Re: Google Maps Info Window Size Problems
Extreme Talker

Posts: 170
Location: Canada
Trades: 0
Doesn't anyone have an idea?
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Old 10-26-2007, 10:54 PM Re: Google Maps Info Window Size Problems
Skilled Talker

Posts: 83
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
scorch is offline
Reply With Quote
View Public Profile
 
Old 10-27-2007, 12:18 AM Re: Google Maps Info Window Size Problems
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-27-2007, 12:37 AM Re: Google Maps Info Window Size Problems
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Or, if you want to control just the info bubble, the only way I've figured out is to use line breaks.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 11-05-2007, 11:20 AM Re: Google Maps Info Window Size Problems
Extreme Talker

Posts: 170
Location: Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE

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

Posts: 100
Name: Jason
Location: Seattle, WA
Trades: 0
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
 
Old 03-27-2009, 04:11 PM Re: Google Maps Info Window Size Problems
Junior Talker

Posts: 1
Trades: 0
I found a solution to this problem, it's a little tricky but it can be done!
Please read and let me know if you find any problems with my code.
http://claytonrabenda.com/web-develo...e-map-with-api
Cheers!
clayrab is offline
Reply With Quote
View Public Profile
 
Old 10-16-2010, 11:47 AM Re: Google Maps Info Window Size Problems
Junior Talker

Posts: 2
Name: DANIEL
Trades: 0
Use the maxWidth option. Here's an example:

infowindow = new google.maps.InfoWindow({content: "loading...", maxWidth:100});
__________________

Please login or register to view this content. Registration is FREE
gocondo is offline
Reply With Quote
View Public Profile
 
Old 10-16-2010, 12:42 PM Re: Google Maps Info Window Size Problems
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,625
Location: UK
Trades: 1
Its very unlikely your going to get a reply. I would sincerely hope the OP has figured this out by now. ?
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Old 10-25-2010, 02:41 AM Re: Google Maps Info Window Size Problems
Novice Talker

Posts: 5
Name: kristinajosep
Trades: 0
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 window how you want the map to look.
kristinajosep is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Google Maps Info Window Size Problems
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 0.43234 seconds with 11 queries