git-svn-id: http://svn.openlayers.org/trunk/openlayers@2931 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
/* Copyright (c) 2006 MetaCarta, Inc., published under a modified BSD license.
|
|
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
|
* for the full text of the license. */
|
|
|
|
/**
|
|
* @class
|
|
*
|
|
* A MultiLineString is a collection of LineStrings
|
|
*
|
|
* @requires OpenLayers/Geometry/Collection.js
|
|
*/
|
|
OpenLayers.Geometry.MultiLineString = OpenLayers.Class.create();
|
|
OpenLayers.Geometry.MultiLineString.prototype =
|
|
OpenLayers.Class.inherit(OpenLayers.Geometry.Collection, {
|
|
|
|
/**
|
|
* An array of class names representing the types of components that
|
|
* the collection can include. A null value means the component types
|
|
* are not restricted.
|
|
* @type Array(String)
|
|
*/
|
|
componentTypes: ["OpenLayers.Geometry.LineString"],
|
|
|
|
/**
|
|
* @constructor
|
|
*
|
|
* @param {Array(OpenLayers.Geometry.LineString)} components
|
|
*/
|
|
initialize: function(components) {
|
|
OpenLayers.Geometry.Collection.prototype.initialize.apply(this,
|
|
arguments);
|
|
},
|
|
|
|
/** @final @type String */
|
|
CLASS_NAME: "OpenLayers.Geometry.MultiLineString"
|
|
});
|