Project

General

Profile

Download (1.32 KB) Statistics
| Branch: | Tag: | Revision:
1
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
2
 * full list of contributors). Published under the 2-clause BSD license.
3
 * See license.txt in the OpenLayers distribution or repository 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

    
41
    CLASS_NAME: "OpenLayers.Geometry.MultiPolygon"
42
});
(7-7/9)