<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <name>Fade between Polygons</name>
    <Placemark>
      <name>Blue Polygon with simple Region</name>
      <Style>
        <LineStyle>
          <color>00000000</color>
        </LineStyle>
        <PolyStyle>
          <color>7fff8080</color>
        </PolyStyle>
      </Style>
      <Region>
        <Lod>
          <minLodPixels>50</minLodPixels>
          <minFadeExtent>100</minFadeExtent>
          <!-- Fade from 200 - 100 -->
          <maxLodPixels>300</maxLodPixels>
          <maxFadeExtent>100</maxFadeExtent>
        </Lod>
        <!-- Same as LatLonAltBox below -->
        <LatLonAltBox>
          <north>-34.85</north>
          <south>-34.97</south>
          <east>138.64</east>
          <west>138.56</west>
        </LatLonAltBox>
      </Region>
      <Polygon>
        <outerBoundaryIs>
          <LinearRing>
            <coordinates>
              138.64,-34.93 138.64,-34.94 138.63,-34.94 138.62,-34.94
              138.62,-34.95 138.62,-34.96 138.63,-34.96 138.62,-34.96
              138.61,-34.97 138.60,-34.97 138.59,-34.97 138.58,-34.97
              138.57,-34.97 138.57,-34.96 138.57,-34.95 138.57,-34.95
              138.57,-34.94 138.57,-34.93 138.57,-34.92 138.57,-34.92
              138.57,-34.91 138.56,-34.91 138.56,-34.90 138.57,-34.90
              138.57,-34.90 138.57,-34.89 138.57,-34.89 138.57,-34.89
              138.56,-34.88 138.56,-34.88 138.56,-34.88 138.56,-34.88
              138.57,-34.88 138.58,-34.87 138.58,-34.87 138.58,-34.86
              138.58,-34.85 138.58,-34.85 138.60,-34.85 138.61,-34.85
              138.63,-34.85 138.63,-34.85 138.64,-34.86 138.64,-34.87
              138.64,-34.87 138.63,-34.87 138.63,-34.88 138.62,-34.88
              138.62,-34.88 138.62,-34.89 138.62,-34.89 138.62,-34.89
              138.63,-34.89 138.63,-34.90 138.64,-34.90 138.64,-34.90
              138.64,-34.91 138.64,-34.91 138.64,-34.92 138.64,-34.92
              138.64,-34.93 138.64,-34.93
            </coordinates>
          </LinearRing>
        </outerBoundaryIs>
      </Polygon>
    </Placemark>
    <Placemark>
      <name>Red Polygon with simple Region</name>
      <Style>
        <LineStyle>
          <color>00000000</color>
        </LineStyle>
        <PolyStyle>
          <color>7f8080ff</color>
        </PolyStyle>
      </Style>
      <Region>
        <Lod>
          <!-- min fade "starts" as max fade "ends" above -->
          <minLodPixels>200</minLodPixels>
          <minFadeExtent>100</minFadeExtent>
        </Lod>
        <LatLonAltBox>
          <north>-34.85</north>
          <south>-34.97</south>
          <east>138.64</east>
          <west>138.56</west>
        </LatLonAltBox>
      </Region>
      <Polygon>
        <outerBoundaryIs>
          <LinearRing>
            <coordinates>
              138.64,-34.93 138.64,-34.94 138.63,-34.94 138.62,-34.94
              138.62,-34.95 138.62,-34.96 138.63,-34.96 138.62,-34.96
              138.61,-34.97 138.60,-34.97 138.59,-34.97 138.58,-34.97
              138.57,-34.97 138.57,-34.96 138.57,-34.95 138.57,-34.95
              138.57,-34.94 138.57,-34.93 138.57,-34.92 138.57,-34.92
              138.57,-34.91 138.56,-34.91 138.56,-34.90 138.57,-34.90
              138.57,-34.90 138.57,-34.89 138.57,-34.89 138.57,-34.89
              138.56,-34.88 138.56,-34.88 138.56,-34.88 138.56,-34.88
              138.57,-34.88 138.58,-34.87 138.58,-34.87 138.58,-34.86
              138.58,-34.85 138.58,-34.85 138.60,-34.85 138.61,-34.85
              138.63,-34.85 138.63,-34.85 138.64,-34.86 138.64,-34.87
              138.64,-34.87 138.63,-34.87 138.63,-34.88 138.62,-34.88
              138.62,-34.88 138.62,-34.89 138.62,-34.89 138.62,-34.89
              138.63,-34.89 138.63,-34.90 138.64,-34.90 138.64,-34.90
              138.64,-34.91 138.64,-34.91 138.64,-34.92 138.64,-34.92
              138.64,-34.93 138.64,-34.93
            </coordinates>
          </LinearRing>
        </outerBoundaryIs>
      </Polygon>
    </Placemark>
  </Document>
</kml>
