source:
trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Geometry/MultiPolygon.js
@
76
Revision 76, 1.5 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | /* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for |
2 | * full list of contributors). Published under the Clear BSD license. |
3 | * See http://svn.openlayers.org/trunk/openlayers/license.txt for the |
4 | * full text of the license. */ |
5 | |
6 | /** |
7 | * @requires OpenLayers/Geometry/Collection.js |
8 | * @requires OpenLayers/Geometry/Polygon.js |
9 | */ |
10 | |
11 | /** |
12 | * Class: OpenLayers.Geometry.MultiPolygon |
13 | * MultiPolygon is a geometry with multiple <OpenLayers.Geometry.Polygon> |
14 | * components. Create a new instance with the <OpenLayers.Geometry.MultiPolygon> |
15 | * constructor. |
16 | * |
17 | * Inherits from: |
18 | * - <OpenLayers.Geometry.Collection> |
19 | */ |
20 | OpenLayers.Geometry.MultiPolygon = OpenLayers.Class( |
21 | OpenLayers.Geometry.Collection, { |
22 | |
23 | /** |
24 | * Property: componentTypes |
25 | * {Array(String)} An array of class names representing the types of |
26 | * components that the collection can include. A null value means the |
27 | * component types are not restricted. |
28 | */ |
29 | componentTypes: ["OpenLayers.Geometry.Polygon"], |
30 | |
31 | /** |
32 | * Constructor: OpenLayers.Geometry.MultiPolygon |
33 | * Create a new MultiPolygon geometry |
34 | * |
35 | * Parameters: |
36 | * components - {Array(<OpenLayers.Geometry.Polygon>)} An array of polygons |
37 | * used to generate the MultiPolygon |
38 | * |
39 | */ |
40 | initialize: function(components) { |
41 | OpenLayers.Geometry.Collection.prototype.initialize.apply(this, |
42 | arguments); |
43 | }, |
44 | |
45 | CLASS_NAME: "OpenLayers.Geometry.MultiPolygon" |
46 | }); |
Note: See TracBrowser
for help on using the repository browser.