Hi. Look here for some code that'll make your map 100% of it's IFRAME size.
http://econym.org.uk/gmap/basic19.htm Then if you have cross-browser problems you might need to create some CSS styles to over-ride any browser specific defaults, basically set margin, border and padding to zero pixels: <style type="text/css"> *{ border:0px; padding:0px; margin:0px; } </style> You might want to make that style more specific than ALL border, padding and margin properties but it'll nudge you in the right direction. Martin. On 19 Aug, 17:48, ScottE <[email protected]> wrote: > Hi everyone, > I'm trying to get a Gmap to appear cleanly within an iFrame. Outside > of the iFrame, the Gmap loads and functions perfectly. Within the > iFrame, the Gmap also loads in the right geographical location and > works fine, etc., but it appears with white padding to the right, > below and above the map (only a few px of white space above the map, > though). This is not the end of the world, but it looks sloppy. I'm > aware of no problems with the iFrame itself (not that I'm saying that > would be impossible), and the iFrame dimensions and the Gmap > dimensions match. > > I've searched the forum and I haven't found any solutions for my > specific issue, but I gather that the Gmap code can be edited to > expand the map to fit the iFrame, flush with the edges. I believe this > is accomplished by using the Map.checkResize() function, and setting > it to resize when a map type is changed (e.g. Satellite to Earth). > However, I'm an amateur with GMaps API, and normally I copy code and > determine where it belongs from found examples of working Gmaps that > do what I'm trying to do. This time that method isn't working for me. > > Firstly, am I right that this can be, and should be, solved in the > Gmap code? Or is this much more complicated? > > If this can be solved in the Gmap code, would someone please direct me > to a working Gmap that does what I'm trying to do? If that's not > available, would someone please take a look at my code and give me > some guidance? The Gmap — not in an iFrame — is here: > > http://mysite.verizon.net/vzenti29/public_html/Gmap.html > > Should I post a link to the parent page or post the iFrame code from > the parent page too? > > Thank you very much. > Scott -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=en.
