[Google Maps API v2] multiple select boxes (pt 2)
Hi,
I hope I'm not violating etiquette here, but I posted the question
below and I wasn't sure if it didn't get a response because it got
bumped off the front page pretty quickly, or because there was no
solution, or because it isn't really a maps question. I've seen select
boxes discussed a bit here, though, so I'm posting it one more time in
the hope that someone has an idea. If it's an inappropriate question,
my apologies - please ignore it and I'll look for a solution
elsewhere.
original question follows...
so I've seen this question around a bit, but never seen anybody
actually get it working. I think I'm close, but as you can see here:
http://www.xelawho.com/map/zones2.htm
when you select an item from the first select box (a polyline), it
displays the corresponding item from the other box (a polygon), too.
I found this answer from Andrew:
"Don't know of an example, but building two select boxes isn't
difficult: pass into your createMarker() function the relevant flag,
and add the data to one of two variables (instead of everything being
added to select_html as now).
You shouldn't need two handleSelected() functions -- both select lists
can use the same function because each select box passes itself
("this") into the function."
which is what I thought I did (making sel_html and select_html) but
maybe the two variables being discussed here are different ones?
thanks in advance for any tips,
Lucas
--
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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home