Allow multi* geometries in Collections/collections.

This commit is contained in:
Marc Jansen
2012-06-25 23:19:25 +02:00
parent 29b684f916
commit f477fd8ced
3 changed files with 39 additions and 1 deletions

View File

@@ -28,7 +28,12 @@ ol.geom.Collection = function(components) {
* @private
* @type {Array.<Function>}
*/
this.typeWhitelist_ = [];
this.typeWhitelist_ = [
ol.geom.MultiPoint,
ol.geom.MultiLineString
// TODO uncomment when implemented
// ,ol.geom.MultiPolygon
];
/**
* @private