On Jun 24, 11:18 am, Buster <[email protected]> wrote:
> I have 2 polygons
> Polygon2 is inside Polygon.  Map type is terrain
>
> Is it possible Polygon2 fill can be made transparent, i.e., polygon1 fill
> color within Polygon2 is removed.  You can see the boundaries of Polygon2,
> but no color --> map (terrain) is now visible within Polygon2 with no fill
> color.

If you mean something like these:
http://www.geocodezip.com/v3_polygon_example_donut.html
http://www.geocodezip.com/v3_polygon_example_donutA.html

It is done by (as Andrew said) reversing the winding direction on the
interior polygons.  If your polygons are in kml, I implemented a
"winding calculator" that will determine the winding direction of
somewhat complex polygons (probably doesn't handle all the cases):
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_winding_linkto.html?filename=http://www.geocodezip.com/geoxml3_test/Polygon_with_holesA.xml

  -- Larry

>
> Thanks in advance for any assistance.

-- 
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 [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.

Reply via email to