On Feb 25, 4:53 am, Jeff Schnitzer <j...@infohazard.org> wrote:
> I don't want to delete and redraw
> every single polygon just to set the zIndexes.

If you don't want, then you don't want. :-)
Polygons are not DOM objects, so they don't have a z-Index. The
elements that represent them are different in different browsers, (ie,
SVG, VML). The API implements cross-browser code to make it easier for
you to add these elements on any browser.
In any case, you don't need to "redraw". Just put them in the order
you want by
setMap(null);
setMap(map);

>
> Is there a way to get the raw element that represents a polygon?

Yes, climbing the DOM tree, but it is unreliable, as the DOM structure
may change without notice.

--
Marcelo - http://maps.forum.nu
--


>
> Thanks,
> Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to