THANK YOU THANK YOU THANK YOU! So grateful.
Julie On Apr 24, 5:19 pm, Andrew Leach <[email protected]> wrote: > On Apr 24, 2:09 am, "[email protected]" <[email protected]> wrote: > > > > > Please can you tell me where I insert the script: > > GSize should work. How about changing this: > > var map = new GMap2(document.getElementById(map)); > > into > > var mapElem = document.getElementById(map); > > var mapWidth = mapElem.style.width; > > var mapHeight = mapElem.style.height; > > var map = new GMap2(mapElem,{size:new GSize(mapWidth,mapHeight)}); > > and removing checkResize() > > Read your code and identify a line which looks like > var map = new GMap2(document.getElementById(map)); > > In your case it's > var map = new GMap2(document.getElementById('wagt_map_4')); > > Replace that line with the four I suggested: > var mapElem = document.getElementById('wagt_map_4'); > var mapWidth = mapElem.style.width; > var mapHeight = mapElem.style.height; > var map = new GMap2(mapElem,{size:new GSize(mapWidth,mapHeight)}); > > Note that these replacement lines specify your element id. > > That particular example was intended to cope with maps of varying > sizes. If your map is a fixed size, you can simply add the size option > to your existing line: > var map = new GMap2(document.getElementById('wagt_map_4'), > {size:new GSize(WWW,HHH)}); > Replace WWW and HHH with the size of the map div (not your tab size!), > and join the line back together. > > Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
