I was just beginning to work on the super categories (people, freshwater, ecosystems, etc) and so hadn't completely thought them out yet. I think I will use separate functions to deal with their rather confusing functionality. Your suggestion was right on the money: changes the ids to a legal value makes everything work perfectly. Thanks for that Larry, and forgive my ignorance when it comes to w3 standards!!!
Onward :-) On Jul 9, 1:43 pm, "[email protected]" <[email protected]> wrote: > On Jul 9, 1:42 pm, PeterB <[email protected]> wrote: > > > Seems like the major "duh" mistake out there. Thanks Larry. However, > > the toggle function doesn't seem to work at all now... > > Doesn't seem to be a maps problem per se, it seems to work for me in > Firefox, albeit in a non-intuitive way. > > Your definitions of super categories and categories is confusing: > <input type="checkbox" name="checkbox" id="0" onclick="supertoggle(1)" > (why is id=0 supertoggle(1)?) > > and the id's you define (which start with a digit) are technically > invalid: > fromhttp://www.w3schools.com/tags/att_standard_id.asp > > id Specifies a unique id for an element. > Naming rules: > * Must begin with a letter A-Z or a-z > * Can be followed by: letters (A-Za-z), digits (0-9), hyphens > ("-"), underscores ("_"), colons (":"), and periods (".") > * Values are case-sensitive > > So, I can't really tell what it is supposed to do. I would expect the > "supertoggles" to clear or check all the subsidiary check boxes (and > hide or display their associated overlays), but that doesn't seem to > be the case. > > -- Larry > > > > > On Jul 9, 10:33 am, "[email protected]" <[email protected]> > > wrote: > > > > On Jul 9, 10:03 am, PeterB <[email protected]> wrote: > > > > > Not sure what's going on here, since half the if else statement seems > > > > to work. The setMap(map); function seems to be the one that doesn't. > > > > Anyone have a clue what's happening here? > > > > >http://www.climateatlas.org/chm/chm4.html > > > > You declare a "map" variable in the global context, but the one you > > > initialize in your initialize function is local to that function. > > > Remove the "var" from in front of it. > > > > -- Larry > > > > > Peter -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
