~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to gis/dhis-gis-geostat/mfbase/openlayers/lib/OpenLayers/Geometry/MultiPolygon.js

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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. */
 
4
 
 
5
/**
 
6
 * @requires OpenLayers/Geometry/Collection.js
 
7
 */
 
8
 
 
9
/**
 
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>
 
13
 * constructor.
 
14
 * 
 
15
 * Inherits from:
 
16
 *  - <OpenLayers.Geometry.Collection>
 
17
 */
 
18
OpenLayers.Geometry.MultiPolygon = OpenLayers.Class(
 
19
  OpenLayers.Geometry.Collection, {
 
20
 
 
21
    /**
 
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.
 
26
     */
 
27
    componentTypes: ["OpenLayers.Geometry.Polygon"],
 
28
 
 
29
    /**
 
30
     * Constructor: OpenLayers.Geometry.MultiPolygon
 
31
     * Create a new MultiPolygon geometry
 
32
     *
 
33
     * Parameters:
 
34
     * components - {Array(<OpenLayers.Geometry.Polygon>)} An array of polygons
 
35
     *              used to generate the MultiPolygon
 
36
     *
 
37
     */
 
38
    initialize: function(components) {
 
39
        OpenLayers.Geometry.Collection.prototype.initialize.apply(this, 
 
40
                                                                  arguments);
 
41
    },
 
42
 
 
43
    CLASS_NAME: "OpenLayers.Geometry.MultiPolygon"
 
44
});