1
/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD
2
* license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
3
* full text of the license. */
6
* @requires OpenLayers/Geometry/Collection.js
10
* Class: OpenLayers.Geometry.MultiPolygon
11
* MultiPolygon is a geometry with multiple <OpenLayers.Geometry.Polygon>
12
* components. Create a new instance with the <OpenLayers.Geometry.MultiPolygon>
16
* - <OpenLayers.Geometry.Collection>
18
OpenLayers.Geometry.MultiPolygon = OpenLayers.Class(
19
OpenLayers.Geometry.Collection, {
22
* Property: componentTypes
23
* {Array(String)} An array of class names representing the types of
24
* components that the collection can include. A null value means the
25
* component types are not restricted.
27
componentTypes: ["OpenLayers.Geometry.Polygon"],
30
* Constructor: OpenLayers.Geometry.MultiPolygon
31
* Create a new MultiPolygon geometry
34
* components - {Array(<OpenLayers.Geometry.Polygon>)} An array of polygons
35
* used to generate the MultiPolygon
38
initialize: function(components) {
39
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
43
CLASS_NAME: "OpenLayers.Geometry.MultiPolygon"