As far as changing the colour goes, you can do it in the event listener:

clickedBlock.setOptions(new PolygonOptions({ 
strokeStyle: new StrokeStyle({color: 0xABCDEF})
})));


As for identification, you could mange it by keeping a reference to the 
polygon rather than the lag long:

if you change:
gridBlocks.addItem({label: label,blockLatLong:gridBlock.
getLatLngBounds()});

to:

gridBlocks.addItem({label: label, polygon:gridBlock});

then you can loop through in the event handler looking for item.polgyon == 
clickedBlock
which should be a bit quicker.



-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api-for-flash/-/__LcZVuulD4J.
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-for-flash?hl=en.

Reply via email to