[Webkit-unassigned] [Bug 6630] New: Google Maps API maps don't work correctly if the map div's CSS is moved to file

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Jan 17 16:32:06 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=6630

           Summary: Google Maps API maps don't work correctly if the map
                    div's CSS is moved to file
           Product: WebKit
           Version: 412+
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: opendarwin at oliverobrien.co.uk


The Google Maps API (v1) - works OK in Safari, until you move the CSS, for the div which the map is 
contained in, into an external file. Then, you can no longer pan up or down the map, and initial default 
centering/positioning doesn't work properly - looks like the Google maps javascript can't access the 
CSS information in the file to know how big the map should be displayed.

For example, on copying the "Hello World" map code from the Google API site at http://
www.google.com/apis/maps/documentation/#The_Hello_World_of_Google_Maps , the following works, 
with inline CSS:

[snip]
 <body onload="onLoad()">

	<div id="map" style="width: 500px; height: 300px"></div>
  </body>

...but if you move the CSS into a file, and do
[snip]
 <body onload="onLoad()">

	<div id="map"></div>
  </body> 

(CSS file linked as normal, containing info for the map div) ...it no longer works.

Not sure if this is something for Webkit team or Google team to fix, but the problem doesn't occur in 
Firefox (I haven't tried in IE.) However, I won't be offended if you close it off as something for Google to 
fix!

-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list