Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Disallowing mixed geometry collections for now

  • Loading branch information...
commit 0fad23970c40c8c4a135d2d800e1baa4a4f2bf13 1 parent 7ef127c
@tschaub tschaub authored
Showing with 2 additions and 13 deletions.
  1. +2 −13 src/ol/geom/geometrycollection.js
View
15 src/ol/geom/geometrycollection.js
@@ -7,8 +7,8 @@ goog.require('ol.geom.Geometry');
/**
- * A mixed collection of geometries. This constructor is typically not called
- * directly. Instead call @see ol.geom.GeometryCollection#fromGeometries.
+ * A collection of geometries. This constructor should not called. Instead
+ * create one of the fixed type collections.
* @constructor
* @implements {ol.geom.Geometry}
*/
@@ -57,14 +57,3 @@ ol.geom.GeometryCollection.prototype.getBounds = function() {
}
return this.bounds;
};
-
-
-/**
- * @param {Array.<ol.geom.Geometry>} components Array of geometries.
- * @return {ol.geom.GeometryCollection} A mixed geometry collection.
- */
-ol.geom.GeometryCollection.fromGeometries = function(components) {
- var collection = new ol.geom.GeometryCollection();
- collection.components = components;
- return collection;
-};
Please sign in to comment.
Something went wrong with that request. Please try again.