How To Add A "hole" To A Circle Polygon (google Maps Api V3)
This Pentagon example shows holes can be added inside a Polygon: http://code.google.com/p/gmaps-samples-v3/source/browse/trunk/poly/pentagon.html?r=40 I would like to add a hole in
Solution 1:
I didn't find anything for the Circle class, but someone has figured out a function that will reduce your code size. It does the same thing you are doing, creating polygons shaped like a circle.
http://www.geocodezip.com/v3_polygon_example_donut.html
The function drawCircle(point, radius, dir) uses dir to distinguish positive space and holes. You have to alternate them to create holes.
Post a Comment for "How To Add A "hole" To A Circle Polygon (google Maps Api V3)"