If these polygons are exactly the same, it's more efficient to just change the color of an existing polygon than creating new polygons with the same path but a different color. But unless you have a very large number of polygons, it shouldn't really make any practical difference because polygon rendering in v3 is pretty fast.
Enoch On Friday, May 25, 2012 7:55:51 PM UTC+10, KB wrote: > > Watch this: http://www.gisdro.nl/BODEMKWALITEIT/index_uitdelucht.php > > 3 layers with the same polygons in different colors. Each object is > created 3 times. > > Is it more efficient to create each object 3 times with different > colors or should I create each object once and change the color of > each object (from an array of 3 colors?) when changing the layer? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/vnCoSCxuxWcJ. 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-js-api-v3?hl=en.
