[Google Maps API v2] looping through polygons
Hi,
so, this seems like a basic question, but I've searched around and
can't find a definitive answer.
I want to loop through an array of polygons to use the show/hide by
categories method.
So for example, if
for (var i=0; i<gmarkers.length; i++)
loops through the markers, and
for (var a=0; a<gpolylines.length; a++)
loops through the polylines, then shouldn't
for (var i=0; i<gpolygons.length; i++)
loop through the polygons?
or should it be
for (var a=0; a<gpolygons.length; a++) ?
or does it not matter as long as it's consistent?
or is it not possible to load polylines and polygons from the same xml
file?
and if it is right, how come I get a "category is not defined" error
when I try to use it here: http://www.xelawho.com/map/zones.htm
thanks in advance for any pointers.
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