Larry,

Thanks for the great info! Yes the reason it was down is because
google weather went down. I need to harden the code a bit so that when
it is done the error is caught.

I went ahead and did the second option. I declared a global array of
all the overlays. Then when I want to display one or more, I have a
function that runs through the array and checks the corresponding
check box value and either displays it or hides it. Works great,
thanks again Larry!

On Mar 21, 2:36 pm, "[email protected]" <[email protected]>
wrote:
> On Mar 21, 10:42 am, Steve Sanders <[email protected]> wrote:
>
> > I'm building a map for my client and I'm having some trouble removing
> > overlays. The maps is here:www.weareduckhunters.com/map.php
>
> > I have three checkboxes that SHOULD toggle three different overlays,
> > one is a set of points, one is polygons and the other is a set of
> > weather points. I have it to where the checkboxes add the overlay, but
> > i can't figure out how to have the overlays removed once the checkbox
> > is unchecked.
>
> > Any help is greatly appreciated, thanks everyone!
>
> Your map doesn't work in IE(6).  I see the following output in your
> html:
> b>Fatal error</b>:  Uncaught exception 'Exception' with message
> 'String could not be parsed as XML' in /var/www/html/map.php:78
> Stack trace:
> #0 /var/www/html/map.php(78): SimpleXMLElement->__construct('')
> #1 /var/www/html/map.php(46): getWeather('Chesson', 'Alabama')
> #2 {main}
>   thrown in <b>/var/www/html/map.php</b> on line <b>78</b><br />
>
> It does show up in Chrome, and that error does not appear in the html,
> I'm not sure why what your server sends should depend on the client.
> But that certainly isn't a map issue.
>
> You have 2 options for removing the overlays:
> 1. keep references to them (usually in an array), then go through and
> hide each one that shouldn't be displayed (or remove it, but that
> would be less efficient).
> 2. remove all the overlays (clearOverlays()) and add back the ones
> that should be displayed.
>
> Have you seen Mike Williams' "categories" example?
> Part 25 Marker Categorieshttp://econym.org.uk/gmap/categories.htm
>
>   -- Larry

-- 
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.

Reply via email to