Tsk, tsk! You tricked me! ;-)

You said it was the same code on both pages, so I trusted you and I
only looked at one of them, but the code is in fact different in
accordance to the different data structures, therefore my reply was
completely off.

--
Marcelo - http://maps.forum.nu
--



On Mar 9, 6:21 pm, Alex <[email protected]> wrote:
> Rossko,
>
> Thanks for the information..
> I went back and looked at the data again.. and see what you were
> talking about..
> It would definitely be nice to be able to "code defensively" Not sure
> how to do that though..
> I am still learning how to read the stuff..
>
> Looks like after I re-worked the data, its working more like it
> should..
> but for some reason my Parks keeps staying on.. weird..
>
> Thanks again..
> Alex
>
> On Mar 9, 11:57 am, Rossko <[email protected]> wrote:
>
>
>
> > > 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.

Reply via email to