Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable alpha combining of intersecting circles/polygons in Google Maps v3 API?

Is there a method/config property in the Google Maps v3 JS API to disable/workaround the alpha combining of overlapping circles? I'm currently working on a project that can end up drawing many circles on a map, with some areas being the intersection of >10 circles. Even with a very low opacity, this can soon make the map unreadable in those intersecting areas. Any suggestions on how to keep the intersections the same opacity as any individual circle would be much appreciated - apparently this was the default behaviour in v2 of the API (example screenshot: http://img23.imageshack.us/i/screenshot20110504at655.png/ )

like image 836
Vasanth Subramanian Avatar asked Sep 04 '12 16:09

Vasanth Subramanian


1 Answers

You need to combine the paths, as arrays of arrays, into a single polygon. Example code here, and view the result here.

like image 124
Marcelo Avatar answered Oct 09 '22 06:10

Marcelo