I declared the variables I'm toggling on/off after the onLoad function and added the overlay using map.addOverlay(xx).
It is working now although I did not have to use the show/hide methods as discussed here: http://groups.google.com/group/Google-Maps-API/browse_thread/thread/ac86015688e3025c On Aug 20, 12:48 am, "[email protected]" <[email protected]> wrote: > On Aug 19, 1:43 pm, JPC <[email protected]> wrote: > > > > > Thanks to you both. > > > Unfortunately I do need the dimensions to be at least that large. I've > > tried making it smaller and it becomes so fuzzy it's almost useless. > > > The GGroundOverlay did work! I assumed incorrectly that it would cover > > up the placemarks. However, it only works when I explicitly call it in > > the onLoad function using map.addOverlay and not when using the toggle > > function. > > > Because the toggle function (see below) also uses map.addOverlay, I'm > > confused why it isn't working? > > > function boxclick(box,category) { > > if (box.checked) { > > map.addOverlay(category); > > } > > else { > > map.removeOverlay(category); > > } > > } > > My IE doesn't like the fact that you are creating the GGroundOverlay > before you initialize the map (you create the GGroundOverlay inline, > but the map isn't initialized until the page onload event). > > -- Larry > > > On Aug 19, 4:01 pm, Grok Lobster <[email protected]> wrote: > > > > Why not use GGroundOverlay > > > instead?http://code.google.com/apis/maps/documentation/reference.html#GGround... > > > > On Aug 19, 12:06 pm, JPC <[email protected]> wrote: > > > > > In the past, I have successfully used GGeoXml to overlay a .kml that > > > > references a .png file when toggling a layer on/off. > > > > > I am attempting to do the same thing but am not getting any result. My > > > > initial guess was that this new .png file is too large (134 KB, > > > > 7000x3937). However, the other images I've had luck with were a larger > > > > file size but with smaller dimensions (322 KB, 999x1024). > > > > > My site link is:http://gce-lter.marsci.uga.edu/public/gis/LTERmaps.html > > > > > The problem kml is > > > > at:http://gce-lter.marsci.uga.edu/public/gis/kml/trendsData_No3.kml > > > > > and its .png image > > > > here:http://gce-lter.marsci.uga.edu/public/gis/kml/trends.png > > > > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
