Okay, looked again. Definitely no visible sidebar content in FF2 ; it
is there in the source but displayed at zero width. Maybe the
deprecated width attribute for the <td> tag is getting ignored in your
XHTML and you should use a style instead.
----
You've made a toggleArrow() function, but nothing ever calls it.
Your sidebar includes
<input id="poly0" type="checkbox" onclick="togglePoly(0);"
checked="checked"/>
which will call togglePoly() only, of course.
You could call toggleArrow() in turn from inside togglePoly() ...
but ...
toggleArrow() as written simply won't work.
midLineArrows() creates a number of arrowhead markers for each line.
toggleArrow() would try to execute
arrows[category].hide();
which, if it worked, would hide only one marker/arrowhead
It won't work anyway - because there is no array of arrows[]
You do keep a reference to all the arrowhead markers in the array
pts[], which was what you used in your previous script. Might be an
idea to use that again.
If you do want to use pts[], you will have to step through each
arrowhead marker stored in pts[], test if it is linked to the polyline
in question, and show or hide as you wish. This is what the code you
had before did.
Maybe if you want to do something with the arrowheads you should do it
inside the togglePoly() function ... which is also how it was
structured before?
If you have changed from handling the polylines by a category to
handling them by a reference number, you will probably need to store
that reference number with the appropriate arrowheads instead (or as
well as) the category.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.