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:
@@ -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]);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user