Commit Graph

8 Commits

Author SHA1 Message Date
Marc Jansen
f477fd8ced Allow multi* geometries in Collections/collections. 2012-06-25 23:19:25 +02:00
Marc Jansen
be9448457d Test & improve the getCentroid/centroid method of collections 2012-06-22 18:24:53 +02:00
Marc Jansen
483c431e1b A centroid method vor Collections 2012-06-22 16:26:19 +02:00
Marc Jansen
e23b119059 Whitespace changes only. 2012-06-22 16:26:19 +02:00
Marc Jansen
f143f32a6f Use ol.error instead of throwing directly. 2012-06-22 12:37:10 +02:00
Marc Jansen
67ce7afe67 Export the Collection constructor. 2012-06-22 09:45:05 +02:00
Marc Jansen
340caf2720 Collections cannot contain Collections.
By having both the constructor and the setComponents checking
a white- and a blacklist for allowed types, we ensure that no
Collections can be added through these methods to the list of
components.
2012-06-21 18:23:37 +02:00
Marc Jansen
0374d1abc7 Add geom.Collection & geom.collection.
Also make MultiPoint and multipoint inherit from Collection/collection
respectively.
2012-06-21 16:00:08 +02:00