]> dev.renevier.net Git - syp.git/blob - openlayers/doc/devdocs/files/OpenLayers/Format/KML-js.html
initial commit
[syp.git] / openlayers / doc / devdocs / files / OpenLayers / Format / KML-js.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2
3 <html><head><title>OpenLayers.Format.KML - OpenLayers</title><link rel="stylesheet" type="text/css" href="../../../styles/main.css"><script language=JavaScript src="../../../javascript/main.js"></script><script language=JavaScript src="../../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
4 if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
5
6 <!--  Generated by Natural Docs, version 1.4 -->
7 <!--  http://www.naturaldocs.org  -->
8
9 <!-- saved from url=(0026)http://www.naturaldocs.org -->
10
11
12
13
14 <div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="OpenLayers.Format.KML"></a>OpenLayers.<wbr>Format.KML</h1><div class=CBody><p>Read/Wite KML.&nbsp; Create a new instance with the <a href="#OpenLayers.Format.KML.OpenLayers.Format.KML" class=LConstructor id=link22 onMouseOver="ShowTip(event, 'tt20', 'link22')" onMouseOut="HideTip('tt20')">OpenLayers.Format.KML</a> constructor.</p><h4 class=CHeading>Inherits from</h4><ul><li><a href="XML-js.html#OpenLayers.Format.XML" class=LClass id=link23 onMouseOver="ShowTip(event, 'tt21', 'link23')" onMouseOut="HideTip('tt21')">OpenLayers.Format.XML</a></li></ul><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#OpenLayers.Format.KML" >OpenLayers.<wbr>Format.KML</a></td><td class=SDescription>Read/Wite KML. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#OpenLayers.Format.KML.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.kmlns" >kmlns</a></td><td class=SDescription>{String} KML Namespace to use. </td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.placemarksDesc" >placemarksDesc</a></td><td class=SDescription>{String} Name of the placemarks. </td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.foldersName" >foldersName</a></td><td class=SDescription>{String} Name of the folders. </td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.foldersDesc" >foldersDesc</a></td><td class=SDescription>{String} Description of the folders. </td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.extractAttributes" >extractAttributes</a></td><td class=SDescription>{Boolean} Extract attributes from KML. </td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.extractStyles" >extractStyles</a></td><td class=SDescription>{Boolean} Extract styles from KML. </td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.internalns" >internalns</a></td><td class=SDescription>{String} KML Namespace to use -- defaults to the namespace of the Placemark node being parsed, but falls back to kmlns.</td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.features" >features</a></td><td class=SDescription>{Array} Array of features</td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.styles" >styles</a></td><td class=SDescription>{Object} Storage of style objects</td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.styleBaseUrl" >styleBaseUrl</a></td><td class=SDescription>{String}</td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.fetched" >fetched</a></td><td class=SDescription>{Object} Storage of KML URLs that have been fetched before in order to prevent reloading them.</td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.maxDepth" >maxDepth</a></td><td class=SDescription>{Integer} Maximum depth for recursive loading external KML URLs Defaults to 0: do no external fetching</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#OpenLayers.Format.KML.Constructor" >Constructor</a></td><td class=SDescription></td></tr><tr class="SConstructor SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.OpenLayers.Format.KML" >OpenLayers.<wbr>Format.KML</a></td><td class=SDescription>Create a new parser for KML.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#OpenLayers.Format.KML.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.read" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">read</a></td><td class=SDescription>Read data from a string, and return a list of features.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.parseData" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">parseData</a></td><td class=SDescription>Read data from a string, and return a list of features.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.parseLinks" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">parseLinks</a></td><td class=SDescription>Finds URLs of linked KML documents and fetches them</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.fetchLink" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">fetchLink</a></td><td class=SDescription>Fetches a URL and returns the result</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.parseStyles" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">parseStyles</a></td><td class=SDescription>Looks for <a href="../Style-js.html#OpenLayers.Style" class=LClass id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">Style</a> nodes in the data and parses them Also parses <a href="../StyleMap-js.html#OpenLayers.StyleMap" class=LClass >StyleMap</a> nodes, but only uses the &lsquo;normal&rsquo; key</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.parseStyle" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">parseStyle</a></td><td class=SDescription>Parses the children of a <a href="../Style-js.html#OpenLayers.Style" class=LClass id=link8 onMouseOver="ShowTip(event, 'tt6', 'link8')" onMouseOut="HideTip('tt6')">Style</a> node and builds the style hash accordingly</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.parseStyleMaps" id=link9 onMouseOver="ShowTip(event, 'tt8', 'link9')" onMouseOut="HideTip('tt8')">parseStyleMaps</a></td><td class=SDescription>Looks for <a href="../Style-js.html#OpenLayers.Style" class=LClass id=link10 onMouseOver="ShowTip(event, 'tt6', 'link10')" onMouseOut="HideTip('tt6')">Style</a> nodes in the data and parses them Also parses <a href="../StyleMap-js.html#OpenLayers.StyleMap" class=LClass >StyleMap</a> nodes, but only uses the &lsquo;normal&rsquo; key</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.parseFeatures" id=link11 onMouseOver="ShowTip(event, 'tt9', 'link11')" onMouseOut="HideTip('tt9')">parseFeatures</a></td><td class=SDescription>Loop through all Placemark nodes and parse them. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.parseFeature" id=link12 onMouseOver="ShowTip(event, 'tt10', 'link12')" onMouseOut="HideTip('tt10')">parseFeature</a></td><td class=SDescription>This function is the core of the KML parsing code in OpenLayers. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.getStyle" id=link13 onMouseOver="ShowTip(event, 'tt11', 'link13')" onMouseOut="HideTip('tt11')">getStyle</a></td><td class=SDescription>Retrieves a style from a style hash using styleUrl as the key If the styleUrl doesn&rsquo;t exist yet, we try to fetch it Internet</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#OpenLayers.Format.KML.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.parseGeometry" >parseGeometry</a></td><td class=SDescription>Properties of this object are the functions that parse geometries based on their type.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#OpenLayers.Format.KML.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.parseGeometry.point" >parseGeometry.<wbr>point</a></td><td class=SDescription>Given a KML node representing a point geometry, create an OpenLayers point geometry.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.parseGeometry.linestring" >parseGeometry.<wbr>linestring</a></td><td class=SDescription>Given a KML node representing a linestring geometry, create an OpenLayers linestring geometry.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.parseGeometry.polygon" >parseGeometry.<wbr>polygon</a></td><td class=SDescription>Given a KML node representing a polygon geometry, create an OpenLayers polygon geometry.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.parseGeometry.multigeometry" >parseGeometry.<wbr>multigeometry</a></td><td class=SDescription>Given a KML node representing a multigeometry, create an OpenLayers geometry collection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.parseAttributes" id=link14 onMouseOver="ShowTip(event, 'tt12', 'link14')" onMouseOut="HideTip('tt12')">parseAttributes</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.parseExtendedData" id=link15 onMouseOver="ShowTip(event, 'tt13', 'link15')" onMouseOut="HideTip('tt13')">parseExtendedData</a></td><td class=SDescription>Parse ExtendedData from KML. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.parseProperty" id=link16 onMouseOver="ShowTip(event, 'tt14', 'link16')" onMouseOut="HideTip('tt14')">parseProperty</a></td><td class=SDescription>Convenience method to find a node and return its value</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.write" id=link17 onMouseOver="ShowTip(event, 'tt15', 'link17')" onMouseOut="HideTip('tt15')">write</a></td><td class=SDescription>Accept Feature Collection, and return a string.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.createFolderXML" id=link18 onMouseOver="ShowTip(event, 'tt16', 'link18')" onMouseOut="HideTip('tt16')">createFolderXML</a></td><td class=SDescription>Creates and returns a KML folder node</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.createPlacemarkXML" id=link19 onMouseOver="ShowTip(event, 'tt17', 'link19')" onMouseOut="HideTip('tt17')">createPlacemarkXML</a></td><td class=SDescription>Creates and returns a KML placemark node representing the given feature.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometryNode" id=link20 onMouseOver="ShowTip(event, 'tt18', 'link20')" onMouseOut="HideTip('tt18')">buildGeometryNode</a></td><td class=SDescription>Builds and returns a KML geometry node with the given geometry.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#OpenLayers.Format.KML.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometry" >buildGeometry</a></td><td class=SDescription>Object containing methods to do the actual geometry node building based on geometry type.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#OpenLayers.Format.KML.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometry.point" >buildGeometry.<wbr>point</a></td><td class=SDescription>Given an OpenLayers point geometry, create a KML point.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometry.multipoint" >buildGeometry.<wbr>multipoint</a></td><td class=SDescription>Given an OpenLayers multipoint geometry, create a KML GeometryCollection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometry.linestring" >buildGeometry.<wbr>linestring</a></td><td class=SDescription>Given an OpenLayers linestring geometry, create a KML linestring.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometry.multilinestring" >buildGeometry.<wbr>multilinestring</a></td><td class=SDescription>Given an OpenLayers multilinestring geometry, create a KML GeometryCollection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometry.linearring" >buildGeometry.<wbr>linearring</a></td><td class=SDescription>Given an OpenLayers linearring geometry, create a KML linearring.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometry.polygon" >buildGeometry.<wbr>polygon</a></td><td class=SDescription>Given an OpenLayers polygon geometry, create a KML polygon.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometry.multipolygon" >buildGeometry.<wbr>multipolygon</a></td><td class=SDescription>Given an OpenLayers multipolygon geometry, create a KML GeometryCollection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#OpenLayers.Format.KML.buildGeometry.collection" >buildGeometry.<wbr>collection</a></td><td class=SDescription>Given an OpenLayers geometry collection, create a KML MultiGeometry.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#OpenLayers.Format.KML.buildCoordinatesNode" id=link21 onMouseOver="ShowTip(event, 'tt19', 'link21')" onMouseOut="HideTip('tt19')">buildCoordinatesNode</a></td><td class=SDescription>Builds and returns the KML coordinates node with the given geometry &lt;coordinates&gt;...&lt;/coordinates&gt;</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
15
16 <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.Properties"></a>Properties</h3></div></div>
17
18 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.kmlns"></a>kmlns</h3><div class=CBody><p>{String} KML Namespace to use.&nbsp; Defaults to 2.0 namespace.</p></div></div></div>
19
20 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.placemarksDesc"></a>placemarksDesc</h3><div class=CBody><p>{String} Name of the placemarks.&nbsp;  Default is &ldquo;No description available.&rdquo;</p></div></div></div>
21
22 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.foldersName"></a>foldersName</h3><div class=CBody><p>{String} Name of the folders.&nbsp;  Default is &ldquo;OpenLayers export.&rdquo;</p></div></div></div>
23
24 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.foldersDesc"></a>foldersDesc</h3><div class=CBody><p>{String} Description of the folders.&nbsp; Default is &ldquo;Exported on [date].&rdquo;</p></div></div></div>
25
26 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.extractAttributes"></a>extractAttributes</h3><div class=CBody><p>{Boolean} Extract attributes from KML.&nbsp;  Default is true.&nbsp; Extracting styleUrls requires this to be set to true</p></div></div></div>
27
28 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.extractStyles"></a>extractStyles</h3><div class=CBody><p>{Boolean} Extract styles from KML.&nbsp;  Default is false.&nbsp; Extracting styleUrls also requires extractAttributes to be set to true</p></div></div></div>
29
30 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.internalns"></a>internalns</h3><div class=CBody><p>{String} KML Namespace to use -- defaults to the namespace of the Placemark node being parsed, but falls back to kmlns.</p></div></div></div>
31
32 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.features"></a>features</h3><div class=CBody><p>{Array} Array of features</p></div></div></div>
33
34 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.styles"></a>styles</h3><div class=CBody><p>{Object} Storage of style objects</p></div></div></div>
35
36 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.styleBaseUrl"></a>styleBaseUrl</h3><div class=CBody><p>{String}</p></div></div></div>
37
38 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.fetched"></a>fetched</h3><div class=CBody><p>{Object} Storage of KML URLs that have been fetched before in order to prevent reloading them.</p></div></div></div>
39
40 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.maxDepth"></a>maxDepth</h3><div class=CBody><p>{Integer} Maximum depth for recursive loading external KML URLs Defaults to 0: do no external fetching</p></div></div></div>
41
42 <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.Constructor"></a>Constructor</h3></div></div>
43
44 <div class="CConstructor"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.OpenLayers.Format.KML"></a>OpenLayers.<wbr>Format.KML</h3><div class=CBody><p>Create a new parser for KML.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>options</td><td class=CDLDescription>{Object} An optional object whose properties will be set on this instance.</td></tr></table></div></div></div>
45
46 <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.Functions"></a>Functions</h3></div></div>
47
48 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.read"></a>read</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>read: function(</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Read data from a string, and return a list of features.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>data</td><td class=CDLDescription>{String} or {DOMElement} data to read/parse.</td></tr></table><h4 class=CHeading>Returns</h4><p>{Array(<a href="../Feature/Vector-js.html#OpenLayers.Feature.Vector" class=LClass id=link24 onMouseOver="ShowTip(event, 'tt22', 'link24')" onMouseOut="HideTip('tt22')">OpenLayers.Feature.Vector</a>)} List of features.</p></div></div></div>
49
50 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseData"></a>parseData</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseData: function(</td><td class=PParameter nowrap>data,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Read data from a string, and return a list of features.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>data</td><td class=CDLDescription>{String} or {DOMElement} data to read/parse.</td></tr><tr><td class=CDLEntry>options</td><td class=CDLDescription>{Object} Hash of options</td></tr></table><h4 class=CHeading>Returns</h4><p>{Array(<a href="../Feature/Vector-js.html#OpenLayers.Feature.Vector" class=LClass id=link25 onMouseOver="ShowTip(event, 'tt22', 'link25')" onMouseOut="HideTip('tt22')">OpenLayers.Feature.Vector</a>)} List of features.</p></div></div></div>
51
52 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseLinks"></a>parseLinks</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseLinks: function(</td><td class=PParameter nowrap>nodes,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Finds URLs of linked KML documents and fetches them</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>nodes</td><td class=CDLDescription>{Array} of {DOMElement} data to read/parse.</td></tr><tr><td class=CDLEntry>options</td><td class=CDLDescription>{Object} Hash of options</td></tr></table></div></div></div>
53
54 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.fetchLink"></a>fetchLink</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fetchLink: function(</td><td class=PParameter nowrap>href</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Fetches a URL and returns the result</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>href</td><td class=CDLDescription>{String} url to be fetched</td></tr></table></div></div></div>
55
56 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseStyles"></a>parseStyles</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseStyles: function(</td><td class=PParameter nowrap>nodes,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Looks for <a href="../Style-js.html#OpenLayers.Style" class=LClass id=link26 onMouseOver="ShowTip(event, 'tt6', 'link26')" onMouseOut="HideTip('tt6')">Style</a> nodes in the data and parses them Also parses <a href="../StyleMap-js.html#OpenLayers.StyleMap" class=LClass >StyleMap</a> nodes, but only uses the &lsquo;normal&rsquo; key</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>nodes</td><td class=CDLDescription>{Array} of {DOMElement} data to read/parse.</td></tr><tr><td class=CDLEntry>options</td><td class=CDLDescription>{Object} Hash of options</td></tr></table></div></div></div>
57
58 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseStyle"></a>parseStyle</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseStyle: function(</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Parses the children of a <a href="../Style-js.html#OpenLayers.Style" class=LClass id=link27 onMouseOver="ShowTip(event, 'tt6', 'link27')" onMouseOut="HideTip('tt6')">Style</a> node and builds the style hash accordingly</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>node</td><td class=CDLDescription>{DOMElement} <a href="../Style-js.html#OpenLayers.Style" class=LClass id=link28 onMouseOver="ShowTip(event, 'tt6', 'link28')" onMouseOut="HideTip('tt6')">Style</a> node</td></tr></table></div></div></div>
59
60 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseStyleMaps"></a>parseStyleMaps</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseStyleMaps: function(</td><td class=PParameter nowrap>nodes,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Looks for <a href="../Style-js.html#OpenLayers.Style" class=LClass id=link29 onMouseOver="ShowTip(event, 'tt6', 'link29')" onMouseOut="HideTip('tt6')">Style</a> nodes in the data and parses them Also parses <a href="../StyleMap-js.html#OpenLayers.StyleMap" class=LClass >StyleMap</a> nodes, but only uses the &lsquo;normal&rsquo; key</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>nodes</td><td class=CDLDescription>{Array} of {DOMElement} data to read/parse.</td></tr><tr><td class=CDLEntry>options</td><td class=CDLDescription>{Object} Hash of options</td></tr></table></div></div></div>
61
62 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseFeatures"></a>parseFeatures</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseFeatures: function(</td><td class=PParameter nowrap>nodes,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Loop through all Placemark nodes and parse them.&nbsp; Will create a list of features</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>nodes</td><td class=CDLDescription>{Array} of {DOMElement} data to read/parse.</td></tr><tr><td class=CDLEntry>options</td><td class=CDLDescription>{Object} Hash of options</td></tr></table></div></div></div>
63
64 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseFeature"></a>parseFeature</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseFeature: function(</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>This function is the core of the KML parsing code in OpenLayers.&nbsp; It creates the geometries that are then attached to the returned feature, and calls parseAttributes() to get attribute data out.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>node</td><td class=CDLDescription>{DOMElement}</td></tr></table><h4 class=CHeading>Returns</h4><p>{<a href="../Feature/Vector-js.html#OpenLayers.Feature.Vector" class=LClass id=link30 onMouseOver="ShowTip(event, 'tt22', 'link30')" onMouseOut="HideTip('tt22')">OpenLayers.Feature.Vector</a>} A vector feature.</p></div></div></div>
65
66 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.getStyle"></a>getStyle</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getStyle: function(</td><td class=PParameter nowrap>styleUrl,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Retrieves a style from a style hash using styleUrl as the key If the styleUrl doesn&rsquo;t exist yet, we try to fetch it Internet</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>styleUrl</td><td class=CDLDescription>{String} URL of style</td></tr><tr><td class=CDLEntry>options</td><td class=CDLDescription>{Object} Hash of options</td></tr></table><h4 class=CHeading>Returns</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>{Object}</td><td class=CDLDescription>(reference to) Style hash</td></tr></table></div></div></div>
67
68 <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.Properties"></a>Properties</h3></div></div>
69
70 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseGeometry"></a>parseGeometry</h3><div class=CBody><p>Properties of this object are the functions that parse geometries based on their type.</p></div></div></div>
71
72 <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.Functions"></a>Functions</h3></div></div>
73
74 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseGeometry.point"></a>parseGeometry.<wbr>point</h3><div class=CBody><p>Given a KML node representing a point geometry, create an OpenLayers point geometry.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>node</td><td class=CDLDescription>{DOMElement} A KML Point node.</td></tr></table><h4 class=CHeading>Returns</h4><p>{<a href="../Geometry/Point-js.html#OpenLayers.Geometry.Point" class=LClass id=link31 onMouseOver="ShowTip(event, 'tt23', 'link31')" onMouseOut="HideTip('tt23')">OpenLayers.Geometry.Point</a>} A point geometry.</p></div></div></div>
75
76 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseGeometry.linestring"></a>parseGeometry.<wbr>linestring</h3><div class=CBody><p>Given a KML node representing a linestring geometry, create an OpenLayers linestring geometry.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>node</td><td class=CDLDescription>{DOMElement} A KML LineString node.</td></tr></table><h4 class=CHeading>Returns</h4><p>{<a href="../Geometry/LineString-js.html#OpenLayers.Geometry.LineString" class=LClass id=link32 onMouseOver="ShowTip(event, 'tt24', 'link32')" onMouseOut="HideTip('tt24')">OpenLayers.Geometry.LineString</a>} A linestring geometry.</p></div></div></div>
77
78 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseGeometry.polygon"></a>parseGeometry.<wbr>polygon</h3><div class=CBody><p>Given a KML node representing a polygon geometry, create an OpenLayers polygon geometry.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>node</td><td class=CDLDescription>{DOMElement} A KML Polygon node.</td></tr></table><h4 class=CHeading>Returns</h4><p>{<a href="../Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon" class=LClass id=link33 onMouseOver="ShowTip(event, 'tt25', 'link33')" onMouseOut="HideTip('tt25')">OpenLayers.Geometry.Polygon</a>} A polygon geometry.</p></div></div></div>
79
80 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseGeometry.multigeometry"></a>parseGeometry.<wbr>multigeometry</h3><div class=CBody><p>Given a KML node representing a multigeometry, create an OpenLayers geometry collection.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>node</td><td class=CDLDescription>{DOMElement} A KML MultiGeometry node.</td></tr></table><h4 class=CHeading>Returns</h4><p>{<a href="../Geometry/Collection-js.html#OpenLayers.Geometry.Collection" class=LClass id=link34 onMouseOver="ShowTip(event, 'tt26', 'link34')" onMouseOut="HideTip('tt26')">OpenLayers.Geometry.Collection</a>} A geometry collection.</p></div></div></div>
81
82 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseAttributes"></a>parseAttributes</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseAttributes: function(</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>node</td><td class=CDLDescription>{DOMElement}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Object} An attributes object.</p></div></div></div>
83
84 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseExtendedData"></a>parseExtendedData</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseExtendedData: function(</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Parse ExtendedData from KML.&nbsp; No support for schemas/datatypes.&nbsp; See <a href="http://code.google.com/apis/kml/documentation/kmlreference.html#extendeddata" class=LURL target=_top>http://code.google.com<wbr>/apis<wbr>/kml<wbr>/documentation<wbr>/kmlreference.html#extendeddata</a> for more information on extendeddata.</p></div></div></div>
85
86 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.parseProperty"></a>parseProperty</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseProperty: function(</td><td class=PParameter nowrap>xmlNode,</td></tr><tr><td></td><td class=PParameter nowrap>namespace,</td></tr><tr><td></td><td class=PParameter nowrap>tagName</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Convenience method to find a node and return its value</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>xmlNode</td><td class=CDLDescription>{&lt;DOMElement&gt;}</td></tr><tr><td class=CDLEntry>namespace</td><td class=CDLDescription>{String} namespace of the node to find</td></tr><tr><td class=CDLEntry>tagName</td><td class=CDLDescription>{String} name of the property to parse</td></tr></table><h4 class=CHeading>Returns</h4><p>{String} The value for the requested property (defaults to null)</p></div></div></div>
87
88 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.write"></a>write</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>write: function(</td><td class=PParameter nowrap>features</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Accept Feature Collection, and return a string.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>features</td><td class=CDLDescription>{Array(<a href="../Feature/Vector-js.html#OpenLayers.Feature.Vector" class=LClass id=link35 onMouseOver="ShowTip(event, 'tt22', 'link35')" onMouseOut="HideTip('tt22')">OpenLayers.Feature.Vector</a>} An array of features.</td></tr></table><h4 class=CHeading>Returns</h4><p>{String} A KML string.</p></div></div></div>
89
90 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.createFolderXML"></a>createFolderXML</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>createFolderXML: function()</td></tr></table></blockquote><p>Creates and returns a KML folder node</p><h4 class=CHeading>Returns</h4><p>{DOMElement}</p></div></div></div>
91
92 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.createPlacemarkXML"></a>createPlacemarkXML</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>createPlacemarkXML: function(</td><td class=PParameter nowrap>feature</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates and returns a KML placemark node representing the given feature.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>feature</td><td class=CDLDescription>{<a href="../Feature/Vector-js.html#OpenLayers.Feature.Vector" class=LClass id=link36 onMouseOver="ShowTip(event, 'tt22', 'link36')" onMouseOut="HideTip('tt22')">OpenLayers.Feature.Vector</a>}</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement}</p></div></div></div>
93
94 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometryNode"></a>buildGeometryNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>buildGeometryNode: function(</td><td class=PParameter nowrap>geometry</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Builds and returns a KML geometry node with the given geometry.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry-js.html#OpenLayers.Geometry" class=LClass id=link37 onMouseOver="ShowTip(event, 'tt27', 'link37')" onMouseOut="HideTip('tt27')">OpenLayers.Geometry</a>}</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement}</p></div></div></div>
95
96 <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.Properties"></a>Properties</h3></div></div>
97
98 <div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometry"></a>buildGeometry</h3><div class=CBody><p>Object containing methods to do the actual geometry node building based on geometry type.</p></div></div></div>
99
100 <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.Functions"></a>Functions</h3></div></div>
101
102 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometry.point"></a>buildGeometry.<wbr>point</h3><div class=CBody><p>Given an OpenLayers point geometry, create a KML point.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry/Point-js.html#OpenLayers.Geometry.Point" class=LClass id=link38 onMouseOver="ShowTip(event, 'tt23', 'link38')" onMouseOut="HideTip('tt23')">OpenLayers.Geometry.Point</a>} A point geometry.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A KML point node.</p></div></div></div>
103
104 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometry.multipoint"></a>buildGeometry.<wbr>multipoint</h3><div class=CBody><p>Given an OpenLayers multipoint geometry, create a KML GeometryCollection.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry/Point-js.html#OpenLayers.Geometry.Point" class=LClass id=link39 onMouseOver="ShowTip(event, 'tt23', 'link39')" onMouseOut="HideTip('tt23')">OpenLayers.Geometry.Point</a>} A multipoint geometry.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A KML GeometryCollection node.</p></div></div></div>
105
106 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometry.linestring"></a>buildGeometry.<wbr>linestring</h3><div class=CBody><p>Given an OpenLayers linestring geometry, create a KML linestring.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry/LineString-js.html#OpenLayers.Geometry.LineString" class=LClass id=link40 onMouseOver="ShowTip(event, 'tt24', 'link40')" onMouseOut="HideTip('tt24')">OpenLayers.Geometry.LineString</a>} A linestring geometry.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A KML linestring node.</p></div></div></div>
107
108 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometry.multilinestring"></a>buildGeometry.<wbr>multilinestring</h3><div class=CBody><p>Given an OpenLayers multilinestring geometry, create a KML GeometryCollection.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry/Point-js.html#OpenLayers.Geometry.Point" class=LClass id=link41 onMouseOver="ShowTip(event, 'tt23', 'link41')" onMouseOut="HideTip('tt23')">OpenLayers.Geometry.Point</a>} A multilinestring geometry.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A KML GeometryCollection node.</p></div></div></div>
109
110 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometry.linearring"></a>buildGeometry.<wbr>linearring</h3><div class=CBody><p>Given an OpenLayers linearring geometry, create a KML linearring.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry/LinearRing-js.html#OpenLayers.Geometry.LinearRing" class=LClass id=link42 onMouseOver="ShowTip(event, 'tt28', 'link42')" onMouseOut="HideTip('tt28')">OpenLayers.Geometry.LinearRing</a>} A linearring geometry.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A KML linearring node.</p></div></div></div>
111
112 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometry.polygon"></a>buildGeometry.<wbr>polygon</h3><div class=CBody><p>Given an OpenLayers polygon geometry, create a KML polygon.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon" class=LClass id=link43 onMouseOver="ShowTip(event, 'tt25', 'link43')" onMouseOut="HideTip('tt25')">OpenLayers.Geometry.Polygon</a>} A polygon geometry.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A KML polygon node.</p></div></div></div>
113
114 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometry.multipolygon"></a>buildGeometry.<wbr>multipolygon</h3><div class=CBody><p>Given an OpenLayers multipolygon geometry, create a KML GeometryCollection.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry/Point-js.html#OpenLayers.Geometry.Point" class=LClass id=link44 onMouseOver="ShowTip(event, 'tt23', 'link44')" onMouseOut="HideTip('tt23')">OpenLayers.Geometry.Point</a>} A multipolygon geometry.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A KML GeometryCollection node.</p></div></div></div>
115
116 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildGeometry.collection"></a>buildGeometry.<wbr>collection</h3><div class=CBody><p>Given an OpenLayers geometry collection, create a KML MultiGeometry.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry/Collection-js.html#OpenLayers.Geometry.Collection" class=LClass id=link45 onMouseOver="ShowTip(event, 'tt26', 'link45')" onMouseOut="HideTip('tt26')">OpenLayers.Geometry.Collection</a>} A geometry collection.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A KML MultiGeometry node.</p></div></div></div>
117
118 <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="OpenLayers.Format.KML.buildCoordinatesNode"></a>buildCoordinatesNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>buildCoordinatesNode: function(</td><td class=PParameter nowrap>geometry</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Builds and returns the KML coordinates node with the given geometry &lt;coordinates&gt;...&lt;/coordinates&gt;</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>geometry</td><td class=CDLDescription>{<a href="../Geometry-js.html#OpenLayers.Geometry" class=LClass id=link46 onMouseOver="ShowTip(event, 'tt27', 'link46')" onMouseOut="HideTip('tt27')">OpenLayers.Geometry</a>}</td></tr></table><h4 class=CHeading>Return</h4><p>{DOMElement}</p></div></div></div>
119
120 </div><!--Content-->
121
122
123 <div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
124
125
126 <div id=Menu><div class=MTitle>OpenLayers<div class=MSubTitle>JavaScript Mapping Library</div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent29')">OpenLayers</a><div class=MGroupContent id=MGroupContent29><div class=MEntry><div class=MFile><a href="../../OpenLayers-js.html">OpenLayers</a></div></div><div class=MEntry><div class=MFile><a href="../Ajax-js.html">Ajax</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">BaseTypes</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="../BaseTypes-js.html">Base Types</a></div></div><div class=MEntry><div class=MFile><a href="../BaseTypes/Bounds-js.html">Bounds</a></div></div><div class=MEntry><div class=MFile><a href="../BaseTypes/Class-js.html">Class</a></div></div><div class=MEntry><div class=MFile><a href="../BaseTypes/Element-js.html">Element</a></div></div><div class=MEntry><div class=MFile><a href="../BaseTypes/LonLat-js.html">LonLat</a></div></div><div class=MEntry><div class=MFile><a href="../BaseTypes/Pixel-js.html">Pixel</a></div></div><div class=MEntry><div class=MFile><a href="../BaseTypes/Size-js.html">Size</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../Console-js.html">Console</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Control</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="../Control-js.html">Control</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Control</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="../Control/ArgParser-js.html">ArgParser</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Attribution-js.html">Attribution</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Button-js.html">Button</a></div></div><div class=MEntry><div class=MFile><a href="../Control/DragFeature-js.html">DragFeature</a></div></div><div class=MEntry><div class=MFile><a href="../Control/DragPan-js.html">DragPan</a></div></div><div class=MEntry><div class=MFile><a href="../Control/DrawFeature-js.html">DrawFeature</a></div></div><div class=MEntry><div class=MFile><a href="../Control/EditingToolbar-js.html">EditingToolbar</a></div></div><div class=MEntry><div class=MFile><a href="../Control/GetFeature-js.html">GetFeature</a></div></div><div class=MEntry><div class=MFile><a href="../Control/KeyboardDefaults-js.html">KeyboardDefaults</a></div></div><div class=MEntry><div class=MFile><a href="../Control/LayerSwitcher-js.html">LayerSwitcher</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Measure-js.html">Measure</a></div></div><div class=MEntry><div class=MFile><a href="../Control/ModifyFeature-js.html">ModifyFeature</a></div></div><div class=MEntry><div class=MFile><a href="../Control/MouseDefaults-js.html">MouseDefaults</a></div></div><div class=MEntry><div class=MFile><a href="../Control/MousePosition-js.html">MousePosition</a></div></div><div class=MEntry><div class=MFile><a href="../Control/MouseToolbar-js.html">MouseToolbar</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Navigation-js.html">Navigation</a></div></div><div class=MEntry><div class=MFile><a href="../Control/NavigationHistory-js.html">NavigationHistory</a></div></div><div class=MEntry><div class=MFile><a href="../Control/NavToolbar-js.html">NavToolbar</a></div></div><div class=MEntry><div class=MFile><a href="../Control/OverviewMap-js.html">OverviewMap</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Pan-js.html">Pan</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Panel-js.html">Panel</a></div></div><div class=MEntry><div class=MFile><a href="../Control/PanPanel-js.html">PanPanel</a></div></div><div class=MEntry><div class=MFile><a href="../Control/PanZoom-js.html">PanZoom</a></div></div><div class=MEntry><div class=MFile><a href="../Control/PanZoomBar-js.html">PanZoomBar</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Permalink-js.html">Permalink</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Scale-js.html">Scale</a></div></div><div class=MEntry><div class=MFile><a href="../Control/ScaleLine-js.html">ScaleLine</a></div></div><div class=MEntry><div class=MFile><a href="../Control/SelectFeature-js.html">SelectFeature</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Snapping-js.html">Snapping</a></div></div><div class=MEntry><div class=MFile><a href="../Control/Split-js.html">Split</a></div></div><div class=MEntry><div class=MFile><a href="../Control/WMSGetFeatureInfo-js.html">WMSGetFeatureInfo</a></div></div><div class=MEntry><div class=MFile><a href="../Control/ZoomBox-js.html">ZoomBox</a></div></div><div class=MEntry><div class=MFile><a href="../Control/ZoomIn-js.html">ZoomIn</a></div></div><div class=MEntry><div class=MFile><a href="../Control/ZoomOut-js.html">ZoomOut</a></div></div><div class=MEntry><div class=MFile><a href="../Control/ZoomPanel-js.html">ZoomPanel</a></div></div><div class=MEntry><div class=MFile><a href="../Control/ZoomToMaxExtent-js.html">ZoomToMaxExtent</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../Events-js.html">Events</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">Feature</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="../Feature-js.html">Feature</a></div></div><div class=MEntry><div class=MFile><a href="../Feature/Vector-js.html">Vector</a></div></div><div class=MEntry><div class=MFile><a href="../Feature/WFS-js.html">WFS</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Filter</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MFile><a href="../Filter-js.html">Filter</a></div></div><div class=MEntry><div class=MFile><a href="../Filter/Comparison-js.html">Comparison</a></div></div><div class=MEntry><div class=MFile><a href="../Filter/FeatureId-js.html">FeatureId</a></div></div><div class=MEntry><div class=MFile><a href="../Filter/Logical-js.html">Logical</a></div></div><div class=MEntry><div class=MFile><a href="../Filter/Spatial-js.html">Spatial</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent14')">Format</a><div class=MGroupContent id=MGroupContent14><div class=MEntry><div class=MFile><a href="../Format-js.html">Format</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent6')">Filter</a><div class=MGroupContent id=MGroupContent6><div class=MEntry><div class=MFile><a href="Filter-js.html">Filter</a></div></div><div class=MEntry><div class=MFile><a href="Filter/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="Filter/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Filter/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent7')">GML</a><div class=MGroupContent id=MGroupContent7><div class=MEntry><div class=MFile><a href="GML-js.html">GML</a></div></div><div class=MEntry><div class=MFile><a href="GML/Base-js.html">Base</a></div></div><div class=MEntry><div class=MFile><a href="GML/v2-js.html">v2</a></div></div><div class=MEntry><div class=MFile><a href="GML/v3-js.html">v3</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent8')">SLD</a><div class=MGroupContent id=MGroupContent8><div class=MEntry><div class=MFile><a href="SLD-js.html">SLD</a></div></div><div class=MEntry><div class=MFile><a href="SLD/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="SLD/v1_0_0-js.html">v1_0_0</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent9')">WMC</a><div class=MGroupContent id=MGroupContent9><div class=MEntry><div class=MFile><a href="WMC-js.html">WMC</a></div></div><div class=MEntry><div class=MFile><a href="WMC/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="WMC/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="WMC/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent13')">Format</a><div class=MGroupContent id=MGroupContent13><div class=MEntry><div class=MFile><a href="ArcXML-js.html">ArcXML</a></div></div><div class=MEntry><div class=MFile><a href="ArcXML/Features-js.html">ArcXML.<wbr>Features</a></div></div><div class=MEntry><div class=MFile><a href="GeoJSON-js.html">GeoJSON</a></div></div><div class=MEntry><div class=MFile><a href="GeoRSS-js.html">GeoRSS</a></div></div><div class=MEntry><div class=MFile><a href="GPX-js.html">GPX</a></div></div><div class=MEntry><div class=MFile><a href="JSON-js.html">JSON</a></div></div><div class=MEntry><div class=MFile id=MSelected>KML</div></div><div class=MEntry><div class=MFile><a href="OSM-js.html">OSM</a></div></div><div class=MEntry><div class=MFile><a href="Text-js.html">Text</a></div></div><div class=MEntry><div class=MFile><a href="WFS-js.html">WFS</a></div></div><div class=MEntry><div class=MFile><a href="WFSCapabilities-js.html">WFSCapabilities</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent10')">WFSCapabilities</a><div class=MGroupContent id=MGroupContent10><div class=MEntry><div class=MFile><a href="WFSCapabilities/v1-js.html">WFSCapabilities.v1</a></div></div><div class=MEntry><div class=MFile><a href="WFSCapabilities/v1_0_0-js.html">WFSCapabilities/<wbr>v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="WFSCapabilities/v1_1_0-js.html">WFSCapabilities/<wbr>v1_1_0</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="WFSDescribeFeatureType-js.html">WFSDescribeFeatureType.js</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent11')">WFST</a><div class=MGroupContent id=MGroupContent11><div class=MEntry><div class=MFile><a href="WFST-js.html">WFST</a></div></div><div class=MEntry><div class=MFile><a href="WFST/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="WFST/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="WFST/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="WKT-js.html">WKT</a></div></div><div class=MEntry><div class=MFile><a href="WMSCapabilities-js.html">WMSCapabilities</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent12')">WMSCapabilities</a><div class=MGroupContent id=MGroupContent12><div class=MEntry><div class=MFile><a href="WMSCapabilities/v1_1-js.html">WMSCapabilities.v1_1</a></div></div><div class=MEntry><div class=MFile><a href="WMSCapabilities/v1_1_0-js.html">WMSCapabilities/<wbr>v1_1_0</a></div></div><div class=MEntry><div class=MFile><a href="WMSCapabilities/v1_1_1-js.html">WMSCapabilities/<wbr>v1_1_1</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="WMSDescribeLayer-js.html">WMSDescribeLayer</a></div></div><div class=MEntry><div class=MFile><a href="WMSDescribeLayer/v1_1-js.html">WMSDescribeLayer.v1_1</a></div></div><div class=MEntry><div class=MFile><a href="WMSGetFeatureInfo-js.html">WMSGetFeatureInfo</a></div></div><div class=MEntry><div class=MFile><a href="XML-js.html">XML</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent15')">Geometry</a><div class=MGroupContent id=MGroupContent15><div class=MEntry><div class=MFile><a href="../Geometry-js.html">Geometry</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/Collection-js.html">Collection</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/Curve-js.html">Curve</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/LinearRing-js.html">LinearRing</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/LineString-js.html">LineString</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/MultiLineString-js.html">MultiLineString</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/MultiPoint-js.html">MultiPoint</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/MultiPolygon-js.html">MultiPolygon</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/Point-js.html">Point</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/Polygon-js.html">Polygon</a></div></div><div class=MEntry><div class=MFile><a href="../Geometry/Rectangle-js.html">Rectangle</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent16')">Handler</a><div class=MGroupContent id=MGroupContent16><div class=MEntry><div class=MFile><a href="../Handler-js.html">Handler</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/Box-js.html">Box</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/Click-js.html">Click</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/Drag-js.html">Drag</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/Feature-js.html">Feature</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/Hover-js.html">Hover</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/Keyboard-js.html">Keyboard</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/MouseWheel-js.html">MouseWheel</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/Path-js.html">Path</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/Point-js.html">Point</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/Polygon-js.html">Polygon</a></div></div><div class=MEntry><div class=MFile><a href="../Handler/RegularPolygon-js.html">RegularPolygon</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../Icon-js.html">Icon</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent17')">Lang</a><div class=MGroupContent id=MGroupContent17><div class=MEntry><div class=MFile><a href="../Lang-js.html">Lang</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/ca-js.html">ca</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/cs-CZ-js.html">cs-CZ</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/da-DK-js.html">da-DK</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/de-js.html">de</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/en-js.html">en</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/en-CA-js.html">en-CA</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/es-js.html">es</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/fr-js.html">fr</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/it-js.html">it</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/nb-js.html">nb</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/nl-js.html">nl</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/pt-BR-js.html">pt-BR</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/sv-SE-js.html">sv-SE</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/zh-CN-js.html">zh-CN</a></div></div><div class=MEntry><div class=MFile><a href="../Lang/zh-TW-js.html">zh-TW</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent19')">Layer</a><div class=MGroupContent id=MGroupContent19><div class=MEntry><div class=MFile><a href="../Layer-js.html">Layer</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent18')">Layer</a><div class=MGroupContent id=MGroupContent18><div class=MEntry><div class=MFile><a href="../Layer/ArcGIS93Rest-js.html">ArcGIS93Rest</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/Boxes-js.html">Boxes</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/EventPane-js.html">EventPane</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/FixedZoomLevels-js.html">FixedZoomLevels</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/GeoRSS-js.html">GeoRSS</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/GML-js.html">GML</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/Google-js.html">Google</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/Grid-js.html">Grid</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/HTTPRequest-js.html">HTTPRequest</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/Image-js.html">Image</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/KaMap-js.html">KaMap</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/KaMapCache-js.html">KaMapCache</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/MapGuide-js.html">MapGuide</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/MapServer-js.html">MapServer</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/MapServer/Untiled-js.html">MapServer.<wbr>Untiled</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/Markers-js.html">Markers</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/MultiMap-js.html">MultiMap</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/PointTrack-js.html">PointTrack</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/SphericalMercator-js.html">SphericalMercator</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/Text-js.html">Text</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/TileCache-js.html">TileCache</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/TMS-js.html">TMS</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/Vector-js.html">Vector</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/Vector/RootContainer-js.html">Vector.<wbr>RootContainer</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/VirtualEarth-js.html">VirtualEarth</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/WFS-js.html">WFS</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/WMS-js.html">WMS</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/WMS/Untiled-js.html">WMS.<wbr>Untiled</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/WorldWind-js.html">WorldWind</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/Yahoo-js.html">Yahoo</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/ArcIMS-js.html">ArcIMS</a></div></div><div class=MEntry><div class=MFile><a href="../Layer/XYZ-js.html">XYZ</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../Map-js.html">Map</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent20')">Marker</a><div class=MGroupContent id=MGroupContent20><div class=MEntry><div class=MFile><a href="../Marker-js.html">Marker</a></div></div><div class=MEntry><div class=MFile><a href="../Marker/Box-js.html">Box</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent21')">Popup</a><div class=MGroupContent id=MGroupContent21><div class=MEntry><div class=MFile><a href="../Popup-js.html">Popup</a></div></div><div class=MEntry><div class=MFile><a href="../Popup/Anchored-js.html">Anchored</a></div></div><div class=MEntry><div class=MFile><a href="../Popup/AnchoredBubble-js.html">AnchoredBubble</a></div></div><div class=MEntry><div class=MFile><a href="../Popup/Framed-js.html">Framed</a></div></div><div class=MEntry><div class=MFile><a href="../Popup/FramedCloud-js.html">FramedCloud</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../Projection-js.html">Projection</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent24')">Protocol</a><div class=MGroupContent id=MGroupContent24><div class=MEntry><div class=MFile><a href="../Protocol-js.html">Protocol</a></div></div><div class=MEntry><div class=MFile><a href="../Protocol/HTTP-js.html">HTTP</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent22')">SQL</a><div class=MGroupContent id=MGroupContent22><div class=MEntry><div class=MFile><a href="../Protocol/SQL-js.html">SQL</a></div></div><div class=MEntry><div class=MFile><a href="../Protocol/SQL/Gears-js.html">Gears</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent23')">WFS</a><div class=MGroupContent id=MGroupContent23><div class=MEntry><div class=MFile><a href="../Protocol/WFS-js.html">WFS</a></div></div><div class=MEntry><div class=MFile><a href="../Protocol/WFS/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="../Protocol/WFS/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="../Protocol/WFS/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent25')">Renderer</a><div class=MGroupContent id=MGroupContent25><div class=MEntry><div class=MFile><a href="../Renderer-js.html">Renderer</a></div></div><div class=MEntry><div class=MFile><a href="../Renderer/Canvas-js.html">Canvas</a></div></div><div class=MEntry><div class=MFile><a href="../Renderer/Elements-js.html">Elements</a></div></div><div class=MEntry><div class=MFile><a href="../Renderer/SVG-js.html">SVG</a></div></div><div class=MEntry><div class=MFile><a href="../Renderer/VML-js.html">VML</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent26')">Request</a><div class=MGroupContent id=MGroupContent26><div class=MEntry><div class=MFile><a href="../Request-js.html">Request</a></div></div><div class=MEntry><div class=MFile><a href="../Request/XMLHttpRequest-js.html">XMLHttpRequest</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../Rule-js.html">Rule</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent27')">Strategy</a><div class=MGroupContent id=MGroupContent27><div class=MEntry><div class=MFile><a href="../Strategy-js.html">Strategy</a></div></div><div class=MEntry><div class=MFile><a href="../Strategy/BBOX-js.html">BBOX</a></div></div><div class=MEntry><div class=MFile><a href="../Strategy/Cluster-js.html">Cluster</a></div></div><div class=MEntry><div class=MFile><a href="../Strategy/Fixed-js.html">Fixed</a></div></div><div class=MEntry><div class=MFile><a href="../Strategy/Paging-js.html">Paging</a></div></div><div class=MEntry><div class=MFile><a href="../Strategy/Save-js.html">Save</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../Style-js.html">Style</a></div></div><div class=MEntry><div class=MFile><a href="../StyleMap-js.html">StyleMap</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent28')">Tile</a><div class=MGroupContent id=MGroupContent28><div class=MEntry><div class=MFile><a href="../Tile-js.html">Tile</a></div></div><div class=MEntry><div class=MFile><a href="../Tile/Image-js.html">Image</a></div></div><div class=MEntry><div class=MFile><a href="../Tile/WFS-js.html">WFS</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../Tween-js.html">Tween</a></div></div><div class=MEntry><div class=MFile><a href="../Util-js.html">Util</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent30')">Index</a><div class=MGroupContent id=MGroupContent30><div class=MEntry><div class=MIndex><a href="../../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../../index/Properties.html">Properties</a></div></div><div class=MEntry><div class=MIndex><a href="../../../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../../../index/Constructor.html">Constructor</a></div></div></div></div></div><script type="text/javascript"><!--
127 var searchPanel = new SearchPanel("searchPanel", "HTML", "../../../search");
128 --></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Constructor">Constructor</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Properties">Properties</option></select></div><script language=JavaScript><!--
129 HideAllBut([13, 14, 29], 31);// --></script></div><!--Menu-->
130
131
132
133 <!--START_ND_TOOLTIPS-->
134 <div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>read: function(</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Read data from a string, and return a list of features.</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseData: function(</td><td class=PParameter nowrap>data,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Read data from a string, and return a list of features.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseLinks: function(</td><td class=PParameter nowrap>nodes,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Finds URLs of linked KML documents and fetches them</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fetchLink: function(</td><td class=PParameter nowrap>href</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Fetches a URL and returns the result</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseStyles: function(</td><td class=PParameter nowrap>nodes,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Looks for Style nodes in the data and parses them Also parses StyleMap nodes, but only uses the &lsquo;normal&rsquo; key</div></div><div class=CToolTip id="tt6"><div class=CClass>This class represents a UserStyle obtained from a SLD, containing styling rules.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseStyle: function(</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Parses the children of a Style node and builds the style hash accordingly</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseStyleMaps: function(</td><td class=PParameter nowrap>nodes,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Looks for Style nodes in the data and parses them Also parses StyleMap nodes, but only uses the &lsquo;normal&rsquo; key</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseFeatures: function(</td><td class=PParameter nowrap>nodes,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Loop through all Placemark nodes and parse them. </div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseFeature: function(</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>This function is the core of the KML parsing code in OpenLayers. </div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getStyle: function(</td><td class=PParameter nowrap>styleUrl,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Retrieves a style from a style hash using styleUrl as the key If the styleUrl doesn&rsquo;t exist yet, we try to fetch it Internet</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseAttributes: function(</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseExtendedData: function(</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Parse ExtendedData from KML. </div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>parseProperty: function(</td><td class=PParameter nowrap>xmlNode,</td></tr><tr><td></td><td class=PParameter nowrap>namespace,</td></tr><tr><td></td><td class=PParameter nowrap>tagName</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Convenience method to find a node and return its value</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>write: function(</td><td class=PParameter nowrap>features</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Accept Feature Collection, and return a string.</div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>createFolderXML: function()</td></tr></table></blockquote>Creates and returns a KML folder node</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>createPlacemarkXML: function(</td><td class=PParameter nowrap>feature</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Creates and returns a KML placemark node representing the given feature.</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>buildGeometryNode: function(</td><td class=PParameter nowrap>geometry</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Builds and returns a KML geometry node with the given geometry.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>buildCoordinatesNode: function(</td><td class=PParameter nowrap>geometry</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Builds and returns the KML coordinates node with the given geometry coordinates...&lt;/coordinates&gt;</div></div><div class=CToolTip id="tt20"><div class=CConstructor>Create a new parser for KML.</div></div><div class=CToolTip id="tt21"><div class=CClass>Read and write XML. </div></div><div class=CToolTip id="tt22"><div class=CClass>Vector features use the OpenLayers.Geometry classes as geometry description. </div></div><div class=CToolTip id="tt23"><div class=CClass>Point geometry class.</div></div><div class=CToolTip id="tt24"><div class=CClass>A LineString is a Curve which, once two points have been added to it, can never be less than two points long.</div></div><div class=CToolTip id="tt25"><div class=CClass>Polygon is a collection of Geometry.LinearRings.</div></div><div class=CToolTip id="tt26"><div class=CClass>A Collection is exactly what it sounds like: A collection of different Geometries. </div></div><div class=CToolTip id="tt27"><div class=CClass>A Geometry is a description of a geographic object. </div></div><div class=CToolTip id="tt28"><div class=CClass>A Linear Ring is a special LineString which is closed. </div></div><!--END_ND_TOOLTIPS-->
135
136
137
138
139 <div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
140
141
142 <script language=JavaScript><!--
143 if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>