In addition to what Marcelo and Rossko mentioned, I see another problem in your code: You have function statements inside an if statement.
You can put function statements at the outermost global level, or directly inside other functions. You can't put a function statement inside any other kind of block such as an 'if' or 'for' statement. In ECMAScript (the JavaScript standard), this is invalid syntax. In practice, browser JavaScript engines do allow this by extending the ECMAScript syntax. HOWEVER... Different browsers interpret this syntax in different ways! To make sure your code works correctly in all browsers, simply move all your function statements outside that big 'if' block that encloses all of your code. -Mike On Tue, Mar 9, 2010 at 8:17 AM, Alex <[email protected]> wrote: > I have an other Newbie question.. > > Why does the one map work okay and not the other one.. > > Both use the same code.. just different data.. > > This one Does Work Right.. > http://www.co.frederick.va.us/planning/yetanotherexample_checkboxes.html > > This one Does Not Work Right.. > http://www.co.frederick.va.us/planning/parksites_checkboxes.html > > Thoughts? > > Thanks, > Alex > > -- > 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]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- 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.
