correct writing of multi-part geometries for KML - thanks for the swift review crschmidt (closes #1132).

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5161 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-11-09 18:50:06 +00:00
parent 0ae59513db
commit cbdf3522a7
2 changed files with 56 additions and 3 deletions

View File

@@ -496,7 +496,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
* {DOMElement} A KML GeometryCollection node.
*/
multipoint: function(geometry) {
return this.buildGeometry.collection(geometry);
return this.buildGeometry.collection.apply(this, [geometry]);
},
/**
@@ -527,7 +527,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
* {DOMElement} A KML GeometryCollection node.
*/
multilinestring: function(geometry) {
return this.buildGeometry.collection(geometry);
return this.buildGeometry.collection.apply(this, [geometry]);
},
/**
@@ -583,7 +583,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
* {DOMElement} A KML GeometryCollection node.
*/
multipolygon: function(geometry) {
return this.buildGeometry.collection(geometry);
return this.buildGeometry.collection.apply(this, [geometry]);
},
/**