#802 - giving all classes a constructor that don't currently have one - this for Natural Docs

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3595 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-07-05 18:54:38 +00:00
parent 691802b115
commit 658df9df72
4 changed files with 63 additions and 3 deletions

View File

@@ -8,6 +8,13 @@
* @requires OpenLayers/Handler/MouseWheel.js * @requires OpenLayers/Handler/MouseWheel.js
* *
* Class: OpenLayers.Control.Navigation * Class: OpenLayers.Control.Navigation
* The navigation control handles map browsing with mouse events (dragging,
* double-clicking, and scrolling the wheel). Create a new navigation
* control with the <OpenLayers.Control.Navigation> control.
*
* Note that this control is added to the map by default (if no controls
* array is sent in the options object to the <OpenLayers.Map>
* constructor).
* *
* Inherits: * Inherits:
* - <OpenLayers.Control> * - <OpenLayers.Control>
@@ -34,6 +41,18 @@ OpenLayers.Control.Navigation.prototype =
*/ */
wheelHandler: null, wheelHandler: null,
/**
* Constructor: OpenLayers.Control.Navigation
* Create a new navigation control
*
* Parameters:
* options - {Object} An optional object whose properties will be set on
* the control
*/
initialize: function(options) {
OpenLayers.Control.prototype.initialize.apply(this, arguments);
},
/** /**
* Method: activate * Method: activate
*/ */

View File

@@ -9,7 +9,8 @@
* @requires OpenLayers/Geometry.js * @requires OpenLayers/Geometry.js
* *
* Class: OpenLayers.Format.GML * Class: OpenLayers.Format.GML
* Read/Wite GML. * Read/Wite GML. Create a new instance with the <OpenLayers.Format.GML>
* constructor.
* *
* Inherits from: * Inherits from:
* - <OpenLayers.Format> * - <OpenLayers.Format>
@@ -65,6 +66,19 @@ OpenLayers.Format.GML.prototype =
*/ */
extractAttributes: true, extractAttributes: true,
/**
* Constructor: OpenLayers.Format.GML
* Create a new parser for GML
*
* Parameters:
* options - {Object} An optional object whose properties will be set on
* this instance.
*/
initialize: function(options) {
OpenLayers.Format.prototype.initialize.apply(this, [options]);
},
/** /**
* APIMethod: read * APIMethod: read
* Read data from a string, and return a list of features. * Read data from a string, and return a list of features.

View File

@@ -6,7 +6,8 @@
* @requires OpenLayers/Format.js * @requires OpenLayers/Format.js
* *
* Class: OpenLayers.Format.GeoRSS * Class: OpenLayers.Format.GeoRSS
* Write-only GeoRSS. * Write-only GeoRSS. Create a new instance with the
* <OpenLayers.Format.GeoRSS> constructor.
* *
* Inherits from: * Inherits from:
* - <OpenLayers.Format> * - <OpenLayers.Format>
@@ -33,6 +34,19 @@ OpenLayers.Format.GeoRSS.prototype =
*/ */
georssns: "http://www.georss.org/georss", georssns: "http://www.georss.org/georss",
/**
* Constructor: OpenLayers.Format.GeoRSS
* Create a new parser for GeoRSS
*
* Parameters:
* options - {Object} An optional object whose properties will be set on
* this instance.
*/
initialize: function(options) {
OpenLayers.Format.prototype.initialize.apply(this, [options]);
},
/** /**
* APIMethod: write * APIMethod: write
* Accept Feature Collection, and return a string. * Accept Feature Collection, and return a string.

View File

@@ -9,7 +9,8 @@
* *
* Class: OpenLayers.Format.KML * Class: OpenLayers.Format.KML
* Read only KML. Largely Proof of Concept: does not support advanced Features, * Read only KML. Largely Proof of Concept: does not support advanced Features,
* including Polygons. * including Polygons. Create a new instance with the
* <OpenLayers.Format.KML> constructor.
* *
* Inherits from: * Inherits from:
* - <OpenLayers.Format> * - <OpenLayers.Format>
@@ -24,6 +25,18 @@ OpenLayers.Format.KML.prototype =
*/ */
kmlns: "http://earth.google.com/kml/2.0", kmlns: "http://earth.google.com/kml/2.0",
/**
* Constructor: OpenLayers.Format.KML
* Create a new parser for KML
*
* Parameters:
* options - {Object} An optional object whose properties will be set on
* this instance.
*/
initialize: function(options) {
OpenLayers.Format.prototype.initialize.apply(this, [options]);
},
/** /**
* APIMethod: read * APIMethod: read
* Read data from a string, and return a list of features. * Read data from a string, and return a list of features.