KML - 不需要多边形填充,但仍然会发生

时间:2016-09-29 20:17:44

标签: kml

我有填充多边形的KML代码。我不希望填充多边形。我有0和1,但仍显示填充多边形。多边形的半径约为10米。这是如此之小,以至于1.5的线宽实际上导致多边形被填充? 这是KML(我把它剥离到只有1点而不是原始源的倍数)(这是可操作的,所以你应该能够复制它并看看我的意思):

<?xml version='1.0' encoding='UTF-8'?>
<kml xmlns='http://earth.google.com/kml/2.1'>
<Document>
<name>
CO0xxxxxx
</name>
<open>1</open>
<Style id='a'>
<IconStyle>
<Icon>
 http://maps.google.com/mapfiles/kml/paddle/grn-blank.png
</Icon>
</IconStyle>
</Style>
<Folder>
<open>0</open>
<name>Names</name>
<Placemark>
<name>WELL NO 2</name>
<description><![CDATA[]]></description>
<Point>
<altitudeMode>clampToGround</altitudeMode>
<coordinates>-107.676117, 39.586253,0</coordinates>
</Point>
</Placemark>
<open>0</open>
<name>Polygons on-off</name>
<Placemark>
<Style>
<IconStyle>
<Icon>
<href>root://icons/palette-s.png</href>
<x>224</x>
<y>224</y>
<w>32</w>
<h>32</h>
</Icon>
</IconStyle>
<PolyStyle>
<Fill>0</Fill>
<Outline>1</Outline>
</PolyStyle>
<LineStyle>
<Color>ff0000ff</Color>
<Width>1.5</Width>
</LineStyle>
</Style>
<Polygon>
<extrude>0</extrude>
<altitudeMode>clampToGround</altitudeMode>
<outerBoundaryIs>
<LinearRing>
<coordinates>
-107.676029,39.586323,0
-107.675996,39.586227,0
-107.676085,39.586158,0
-107.676205,39.586183,0
-107.676238,39.586279,0
-107.676149,39.586348,0
-107.676029,39.586323,0
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
</Folder>
</Document>
</kml>

1 个答案:

答案 0 :(得分:0)

KML是XML的一种方言。标签区分大小写。

from the posted KML

<PolyStyle>
 <fill>0</fill>
 <outline>1</outline>
</PolyStyle>

与:

不同
   $rootScope.$on('setmoney',function (thisdata) {

            console.log("setting money");
            console.log("money is : " + thisdata);
});

updated KML

KML Reference