> This one Does Work > Right..http://www.co.frederick.va.us/planning/yetanotherexample_checkboxes.html
Are you sure? In your loop to read from the text file, the hide categories / sidebar build calls are run every time around the loop i.e. for each and every marker. You probably want to action that once, outside of the for-loop. > This one Does Not Work > Right..http://www.co.frederick.va.us/planning/parksites_checkboxes.html What's different is indeed the data. In this one, .mycategory is getting stored like "HighSchool\r". That never matches when looking for category "HighSchool" The \r is the CR character at the end of the line of input text, picked up by your text parser. In the second text file, category is at the end of each line ; in the first file, category is at the front and some other piece of data will pick up an \r character, but harmlessly that time. You could rearrange your data for a quick fix ; or add one of your seperator characters | to the end of each line ; or you could code defensively and get your text parser to remove CR/newline characters where they aren't wanted. -- 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.
