> I am trying to assign a click event to each polygon stored in my array so > that when clicked the map zooms into the bounds of that specific polygon.
there seems to be a lot of code there for what is really a fairly simple operation. Bear in mind that a polygon is really just a polyline with a couple of extra attributes and you can center and zoom the map the same way you would for a line. You can have a look here: http://www.xelawho.com/map/ in the "select a zone" pull down menu to see how I did something similar. -- 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.
