fix Natural Docs comments, no functional change. p=jorix, r=me (closes #2989)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -25,7 +25,7 @@ OpenLayers.String = {
|
|||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* str - {String} The string to test.
|
* str - {String} The string to test.
|
||||||
* sub - {Sring} The substring to look for.
|
* sub - {String} The substring to look for.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Boolean} The first string starts with the second.
|
* {Boolean} The first string starts with the second.
|
||||||
@@ -204,7 +204,7 @@ if (!String.prototype.startsWith) {
|
|||||||
* *Deprecated*. Whether or not a string starts with another string.
|
* *Deprecated*. Whether or not a string starts with another string.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* sStart - {Sring} The string we're testing for.
|
* sStart - {String} The string we're testing for.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Boolean} Whether or not this string starts with the string passed in.
|
* {Boolean} Whether or not this string starts with the string passed in.
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* Default is center.
|
* Default is center.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Bound>} A new bounds that is scaled by ratio
|
* {<OpenLayers.Bounds>} A new bounds that is scaled by ratio
|
||||||
* from origin.
|
* from origin.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -560,6 +560,8 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* maxExtent - {<OpenLayers.Bounds>}
|
* maxExtent - {<OpenLayers.Bounds>}
|
||||||
* options - {Object} Some possible options are:
|
* options - {Object} Some possible options are:
|
||||||
|
*
|
||||||
|
* Allowed Options:
|
||||||
* leftTolerance - {float} Allow for a margin of error
|
* leftTolerance - {float} Allow for a margin of error
|
||||||
* with the 'left' value of this
|
* with the 'left' value of this
|
||||||
* bound.
|
* bound.
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ OpenLayers.Console = {
|
|||||||
* Expects a single error message
|
* Expects a single error message
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* object - {Object}
|
* error - {Object}
|
||||||
*/
|
*/
|
||||||
userError: function(error) {
|
userError: function(error) {
|
||||||
alert(error);
|
alert(error);
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ OpenLayers.Control.SelectFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: layers
|
* Property: layers
|
||||||
* {Array(<OpenLayers.Layer.Vector>} The layers this control will work on,
|
* {Array(<OpenLayers.Layer.Vector>)} The layers this control will work on,
|
||||||
* or null if the control was configured with a single layer
|
* or null if the control was configured with a single layer
|
||||||
*/
|
*/
|
||||||
layers: null,
|
layers: null,
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ OpenLayers.Control.Snapping = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* Method: considerSnapping
|
* Method: considerSnapping
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* point - {<OpenLayers.Geometry.Point}} The vertex to be snapped (or
|
* point - {<OpenLayers.Geometry.Point>} The vertex to be snapped (or
|
||||||
* unsnapped).
|
* unsnapped).
|
||||||
* loc - {<OpenLayers.Geometry.Point>} The location of the mouse in map
|
* loc - {<OpenLayers.Geometry.Point>} The location of the mouse in map
|
||||||
* coords.
|
* coords.
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ OpenLayers.Control.Split = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* Remove a feature from a list based on the given geometry.
|
* Remove a feature from a list based on the given geometry.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* features - {Array(<OpenLayers.Feature.Vector>} A list of features.
|
* features - {Array(<OpenLayers.Feature.Vector>)} A list of features.
|
||||||
* geometry - {<OpenLayers.Geometry>} A geometry.
|
* geometry - {<OpenLayers.Geometry>} A geometry.
|
||||||
*/
|
*/
|
||||||
removeByGeometry: function(features, geometry) {
|
removeByGeometry: function(features, geometry) {
|
||||||
@@ -340,7 +340,7 @@ OpenLayers.Control.Split = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* will be split if eligible.
|
* will be split if eligible.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* feature - {<OpenLayers.Feature.Vector}} The newly created or modified
|
* feature - {<OpenLayers.Feature.Vector>} The newly created or modified
|
||||||
* feature.
|
* feature.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
|
|||||||
@@ -604,6 +604,9 @@ OpenLayers.Events = OpenLayers.Class({
|
|||||||
* events.register("loadstart", object, loadStartListener);
|
* events.register("loadstart", object, loadStartListener);
|
||||||
* events.register("loadstart", object, loadEndListener);
|
* events.register("loadstart", object, loadEndListener);
|
||||||
* (end)
|
* (end)
|
||||||
|
*
|
||||||
|
* Parameters:
|
||||||
|
* object - {Object}
|
||||||
*/
|
*/
|
||||||
on: function(object) {
|
on: function(object) {
|
||||||
for(var type in object) {
|
for(var type in object) {
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ OpenLayers.Format.GML = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
* Method: parseAttributes
|
* Method: parseAttributes
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* node - {<DOMElement>}
|
* node - {DOMElement}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Object} An attributes object.
|
* {Object} An attributes object.
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ OpenLayers.Format.GPX = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
* Method: extractSegment
|
* Method: extractSegment
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* segment - {<DOMElement>} a trkseg or rte node to parse
|
* segment - {DOMElement} a trkseg or rte node to parse
|
||||||
* segmentType - {String} nodeName of waypoints that form the line
|
* segmentType - {String} nodeName of waypoints that form the line
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
|
|||||||
@@ -263,12 +263,12 @@ OpenLayers.Format.GeoRSS = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
/**
|
/**
|
||||||
* APIMethod: read
|
* APIMethod: read
|
||||||
* Return a list of features from a GeoRSS doc
|
* Return a list of features from a GeoRSS doc
|
||||||
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* data - {Element}
|
* doc - {Element}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* An Array of <OpenLayers.Feature.Vector>s
|
* {Array(<OpenLayers.Feature.Vector>)}
|
||||||
*/
|
*/
|
||||||
read: function(doc) {
|
read: function(doc) {
|
||||||
if (typeof doc == "string") {
|
if (typeof doc == "string") {
|
||||||
|
|||||||
@@ -1125,7 +1125,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
* Accept Feature Collection, and return a string.
|
* Accept Feature Collection, and return a string.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* features - {Array(<OpenLayers.Feature.Vector>} An array of features.
|
* features - {Array(<OpenLayers.Feature.Vector>)} An array of features.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {String} A KML string.
|
* {String} A KML string.
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ OpenLayers.Geometry.Rectangle = OpenLayers.Class(OpenLayers.Geometry, {
|
|||||||
* Constructor: OpenLayers.Geometry.Rectangle
|
* Constructor: OpenLayers.Geometry.Rectangle
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* points - {Array(<OpenLayers.Geometry.Point>}
|
* points - {Array(<OpenLayers.Geometry.Point>)}
|
||||||
*/
|
*/
|
||||||
initialize: function(x, y, width, height) {
|
initialize: function(x, y, width, height) {
|
||||||
OpenLayers.Geometry.prototype.initialize.apply(this, arguments);
|
OpenLayers.Geometry.prototype.initialize.apply(this, arguments);
|
||||||
|
|||||||
@@ -556,7 +556,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
* Method: moveTo
|
* Method: moveTo
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* bound - {<OpenLayers.Bounds>}
|
* bounds - {<OpenLayers.Bounds>}
|
||||||
* zoomChanged - {Boolean} Tells when zoom has changed, as layers have to
|
* zoomChanged - {Boolean} Tells when zoom has changed, as layers have to
|
||||||
* do some init work in that case.
|
* do some init work in that case.
|
||||||
* dragging - {Boolean}
|
* dragging - {Boolean}
|
||||||
@@ -715,7 +715,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
* subverted.
|
* subverted.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* visible - {Boolean} Whether or not to display the layer (if in range)
|
* visibility - {Boolean} Whether or not to display the layer (if in range)
|
||||||
*/
|
*/
|
||||||
setVisibility: function(visibility) {
|
setVisibility: function(visibility) {
|
||||||
if (visibility != this.visibility) {
|
if (visibility != this.visibility) {
|
||||||
@@ -1079,7 +1079,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
* APIMethod: getZoomForExtent
|
* APIMethod: getZoomForExtent
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* bounds - {<OpenLayers.Bounds>}
|
* extent - {<OpenLayers.Bounds>}
|
||||||
* closest - {Boolean} Find the zoom level that most closely fits the
|
* closest - {Boolean} Find the zoom level that most closely fits the
|
||||||
* specified bounds. Note that this may result in a zoom that does
|
* specified bounds. Note that this may result in a zoom that does
|
||||||
* not exactly contain the entire extent.
|
* not exactly contain the entire extent.
|
||||||
|
|||||||
@@ -798,7 +798,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* rows - {Integer} Maximum number of rows we want our grid to have.
|
* rows - {Integer} Maximum number of rows we want our grid to have.
|
||||||
* colums - {Integer} Maximum number of columns we want our grid to have.
|
* columns - {Integer} Maximum number of columns we want our grid to have.
|
||||||
*/
|
*/
|
||||||
removeExcessTiles: function(rows, columns) {
|
removeExcessTiles: function(rows, columns) {
|
||||||
|
|
||||||
|
|||||||
@@ -1591,7 +1591,7 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
* If the new lonlat is in the current extent the map will slide smoothly
|
* If the new lonlat is in the current extent the map will slide smoothly
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* lonlat - {<OpenLayers.Lonlat>}
|
* lonlat - {<OpenLayers.LonLat>}
|
||||||
*/
|
*/
|
||||||
panTo: function(lonlat) {
|
panTo: function(lonlat) {
|
||||||
if (this.panMethod && this.getExtent().scale(this.panRatio).containsLonLat(lonlat)) {
|
if (this.panMethod && this.getExtent().scale(this.panRatio).containsLonLat(lonlat)) {
|
||||||
@@ -2250,8 +2250,6 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
/**
|
/**
|
||||||
* APIMethod: zoomIn
|
* APIMethod: zoomIn
|
||||||
*
|
*
|
||||||
* Parameters:
|
|
||||||
* zoom - {int}
|
|
||||||
*/
|
*/
|
||||||
zoomIn: function() {
|
zoomIn: function() {
|
||||||
this.zoomTo(this.getZoom() + 1);
|
this.zoomTo(this.getZoom() + 1);
|
||||||
@@ -2260,8 +2258,6 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
/**
|
/**
|
||||||
* APIMethod: zoomOut
|
* APIMethod: zoomOut
|
||||||
*
|
*
|
||||||
* Parameters:
|
|
||||||
* zoom - {int}
|
|
||||||
*/
|
*/
|
||||||
zoomOut: function() {
|
zoomOut: function() {
|
||||||
this.zoomTo(this.getZoom() - 1);
|
this.zoomTo(this.getZoom() - 1);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ OpenLayers.Projection = OpenLayers.Class({
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: titleRegEx
|
* Property: titleRegEx
|
||||||
* {RegEx} regular expression to strip the title from a proj4js definition
|
* {RegExp} regular expression to strip the title from a proj4js definition
|
||||||
*/
|
*/
|
||||||
titleRegEx: /\+title=[^\+]*/,
|
titleRegEx: /\+title=[^\+]*/,
|
||||||
|
|
||||||
@@ -174,10 +174,10 @@ OpenLayers.Projection.addTransform = function(from, to, method) {
|
|||||||
* the input point is transformed in place.
|
* the input point is transformed in place.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* point - {{OpenLayers.Geometry.Point> | Object} An object with x and y
|
* point - {<OpenLayers.Geometry.Point> | Object} An object with x and y
|
||||||
* properties representing coordinates in those dimensions.
|
* properties representing coordinates in those dimensions.
|
||||||
* sourceProj - {OpenLayers.Projection} Source map coordinate system
|
* source - {OpenLayers.Projection} Source map coordinate system
|
||||||
* destProj - {OpenLayers.Projection} Destination map coordinate system
|
* dest - {OpenLayers.Projection} Destination map coordinate system
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* point - {object} A transformed coordinate. The original point is modified.
|
* point - {object} A transformed coordinate. The original point is modified.
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ OpenLayers.Protocol.WFS.v1 = OpenLayers.Class(OpenLayers.Protocol, {
|
|||||||
* is used.
|
* is used.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* features - {Array(<OpenLayers.Feature.Vector>}
|
* features - {Array(<OpenLayers.Feature.Vector>)}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Protocol.Response>} A response object with a features
|
* {<OpenLayers.Protocol.Response>} A response object with a features
|
||||||
|
|||||||
@@ -799,9 +799,9 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
* inside the valid range.
|
* inside the valid range.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* badComponent - {<OpenLayers.Geometry.Point>)} original geometry of the
|
* badComponent - {<OpenLayers.Geometry.Point>} original geometry of the
|
||||||
* invalid point
|
* invalid point
|
||||||
* goodComponent - {<OpenLayers.Geometry.Point>)} original geometry of the
|
* goodComponent - {<OpenLayers.Geometry.Point>} original geometry of the
|
||||||
* valid point
|
* valid point
|
||||||
* Returns
|
* Returns
|
||||||
* {String} the SVG coordinate pair of the clipped point (like
|
* {String} the SVG coordinate pair of the clipped point (like
|
||||||
|
|||||||
@@ -22,6 +22,11 @@ OpenLayers.Util = OpenLayers.Util || {};
|
|||||||
/**
|
/**
|
||||||
* Function: getElement
|
* Function: getElement
|
||||||
* This is the old $() from prototype
|
* This is the old $() from prototype
|
||||||
|
*
|
||||||
|
* Parameters:
|
||||||
|
* e - {String or DOMElement or Window}
|
||||||
|
* Return:
|
||||||
|
* {Array(DOMElement)}
|
||||||
*/
|
*/
|
||||||
OpenLayers.Util.getElement = function() {
|
OpenLayers.Util.getElement = function() {
|
||||||
var elements = [];
|
var elements = [];
|
||||||
@@ -105,7 +110,7 @@ OpenLayers.Util.clearArray = function(array) {
|
|||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* array - {Array}
|
* array - {Array}
|
||||||
* obj - {Object}
|
* obj - {*}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Integer} The index at, which the first object was found in the array.
|
* {Integer} The index at, which the first object was found in the array.
|
||||||
@@ -134,6 +139,7 @@ OpenLayers.Util.indexOf = function(array, obj) {
|
|||||||
* null to an individual parameter will avoid setting the attribute.
|
* null to an individual parameter will avoid setting the attribute.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
|
* element - {DOMElement} DOM element to modify.
|
||||||
* id - {String} The element id attribute to set.
|
* id - {String} The element id attribute to set.
|
||||||
* px - {<OpenLayers.Pixel>} The left and top style position.
|
* px - {<OpenLayers.Pixel>} The left and top style position.
|
||||||
* sz - {<OpenLayers.Size>} The width and height style attributes.
|
* sz - {<OpenLayers.Size>} The width and height style attributes.
|
||||||
@@ -404,6 +410,7 @@ OpenLayers.Util.alphaHack = function() {
|
|||||||
/**
|
/**
|
||||||
* Function: modifyAlphaImageDiv
|
* Function: modifyAlphaImageDiv
|
||||||
*
|
*
|
||||||
|
* Parameters:
|
||||||
* div - {DOMElement} Div containing Alpha-adjusted Image
|
* div - {DOMElement} Div containing Alpha-adjusted Image
|
||||||
* id - {String}
|
* id - {String}
|
||||||
* px - {<OpenLayers.Pixel>}
|
* px - {<OpenLayers.Pixel>}
|
||||||
@@ -411,7 +418,7 @@ OpenLayers.Util.alphaHack = function() {
|
|||||||
* imgURL - {String}
|
* imgURL - {String}
|
||||||
* position - {String}
|
* position - {String}
|
||||||
* border - {String}
|
* border - {String}
|
||||||
* sizing {String} 'crop', 'scale', or 'image'. Default is "scale"
|
* sizing - {String} 'crop', 'scale', or 'image'. Default is "scale"
|
||||||
* opacity - {Float} Fractional value (0.0 - 1.0)
|
* opacity - {Float} Fractional value (0.0 - 1.0)
|
||||||
*/
|
*/
|
||||||
OpenLayers.Util.modifyAlphaImageDiv = function(div, id, px, sz, imgURL,
|
OpenLayers.Util.modifyAlphaImageDiv = function(div, id, px, sz, imgURL,
|
||||||
@@ -452,6 +459,7 @@ OpenLayers.Util.modifyAlphaImageDiv = function(div, id, px, sz, imgURL,
|
|||||||
/**
|
/**
|
||||||
* Function: createAlphaImageDiv
|
* Function: createAlphaImageDiv
|
||||||
*
|
*
|
||||||
|
* Parameters:
|
||||||
* id - {String}
|
* id - {String}
|
||||||
* px - {<OpenLayers.Pixel>}
|
* px - {<OpenLayers.Pixel>}
|
||||||
* sz - {<OpenLayers.Size>}
|
* sz - {<OpenLayers.Size>}
|
||||||
@@ -938,7 +946,7 @@ OpenLayers.Util.distVincenty = function(p1, p2) {
|
|||||||
* lonlat - {<OpenLayers.LonLat>} (or any object with both .lat, .lon
|
* lonlat - {<OpenLayers.LonLat>} (or any object with both .lat, .lon
|
||||||
* properties) The start point.
|
* properties) The start point.
|
||||||
* brng - {Float} The bearing (degrees).
|
* brng - {Float} The bearing (degrees).
|
||||||
* distance - {Float} The ground distance (meters).
|
* dist - {Float} The ground distance (meters).
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.LonLat>} The destination point.
|
* {<OpenLayers.LonLat>} The destination point.
|
||||||
@@ -1663,6 +1671,8 @@ OpenLayers.Util.getBrowserName = function() {
|
|||||||
* useful in the case where we have a limit in one dimension and must
|
* useful in the case where we have a limit in one dimension and must
|
||||||
* therefore meaure the flow in the other dimension.
|
* therefore meaure the flow in the other dimension.
|
||||||
* options - {Object}
|
* options - {Object}
|
||||||
|
*
|
||||||
|
* Allowed Options:
|
||||||
* displayClass - {String} Optional parameter. A CSS class name(s) string
|
* displayClass - {String} Optional parameter. A CSS class name(s) string
|
||||||
* to provide the CSS context of the rendered content.
|
* to provide the CSS context of the rendered content.
|
||||||
* containerElement - {DOMElement} Optional parameter. Insert the HTML to
|
* containerElement - {DOMElement} Optional parameter. Insert the HTML to
|
||||||
|
|||||||
Reference in New Issue
Block a user