Fix typos in documentation strings.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -7,27 +7,27 @@ OpenLayers.ProxyHost = "";
|
|||||||
//OpenLayers.ProxyHost = "examples/proxy.cgi?url=";
|
//OpenLayers.ProxyHost = "examples/proxy.cgi?url=";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ajax reader for OpenLayers
|
* Ajax reader for OpenLayers
|
||||||
*
|
*
|
||||||
*@uri url to do remote XML http get
|
* @uri url to do remote XML http get
|
||||||
*@param 'get' format params (x=y&a=b...)
|
* @param {String} 'get' format params (x=y&a=b...)
|
||||||
*@who object to handle callbacks for this request
|
* @who object to handle callbacks for this request
|
||||||
*@complete the function to be called on success
|
* @complete the function to be called on success
|
||||||
*@failure the function to be called on failure
|
* @failure the function to be called on failure
|
||||||
*
|
*
|
||||||
* example usage from a caller:
|
* example usage from a caller:
|
||||||
*
|
*
|
||||||
* caps: function(request) {
|
* caps: function(request) {
|
||||||
* -blah-
|
* -blah-
|
||||||
* },
|
* },
|
||||||
*
|
*
|
||||||
* OpenLayers.loadURL(url,params,this,caps);
|
* OpenLayers.loadURL(url,params,this,caps);
|
||||||
*
|
*
|
||||||
* Notice the above example does not provide an error handler; a default empty
|
* Notice the above example does not provide an error handler; a default empty
|
||||||
* handler is provided which merely logs the error if a failure handler is not
|
* handler is provided which merely logs the error if a failure handler is not
|
||||||
* supplied
|
* supplied
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ OpenLayers.Control.EditingToolbar.prototype =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an editing toolbar for a given layer.
|
* Create an editing toolbar for a given layer.
|
||||||
* @param OpenLayers.Layer.Vector layer
|
* @param {OpenLayers.Layer.Vector} layer
|
||||||
* @param Object options
|
* @param {Object} options
|
||||||
*/
|
*/
|
||||||
initialize: function(layer, options) {
|
initialize: function(layer, options) {
|
||||||
OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);
|
OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);
|
||||||
|
|||||||
@@ -163,9 +163,9 @@ OpenLayers.Control.PanZoomBar.prototype =
|
|||||||
return centered;
|
return centered;
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
* @param evt
|
|
||||||
* This function is used to pass events that happen on the div, or the map,
|
* This function is used to pass events that happen on the div, or the map,
|
||||||
* through to the slider, which then does its moving thing.
|
* through to the slider, which then does its moving thing.
|
||||||
|
* @param {OpenLayers.Event} evt
|
||||||
*/
|
*/
|
||||||
passEventToSlider:function(evt) {
|
passEventToSlider:function(evt) {
|
||||||
this.sliderEvents.handleBrowserEvent(evt);
|
this.sliderEvents.handleBrowserEvent(evt);
|
||||||
@@ -185,8 +185,8 @@ OpenLayers.Control.PanZoomBar.prototype =
|
|||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @param evt
|
|
||||||
* event listener for clicks on the slider
|
* event listener for clicks on the slider
|
||||||
|
* @param {OpenLayers.Event} evt
|
||||||
*/
|
*/
|
||||||
zoomBarDown:function(evt) {
|
zoomBarDown:function(evt) {
|
||||||
if (!OpenLayers.Event.isLeftClick(evt)) return;
|
if (!OpenLayers.Event.isLeftClick(evt)) return;
|
||||||
@@ -201,10 +201,10 @@ OpenLayers.Control.PanZoomBar.prototype =
|
|||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @param evt
|
|
||||||
* This is what happens when a click has occurred, and the client is dragging.
|
* This is what happens when a click has occurred, and the client is dragging.
|
||||||
* Here we must ensure that the slider doesn't go beyond the bottom/top of the
|
* Here we must ensure that the slider doesn't go beyond the bottom/top of the
|
||||||
* zoombar div, as well as moving the slider to its new visual location
|
* zoombar div, as well as moving the slider to its new visual location
|
||||||
|
* @param {OpenLayers.Event} evt
|
||||||
*/
|
*/
|
||||||
zoomBarDrag:function(evt) {
|
zoomBarDrag:function(evt) {
|
||||||
if (this.mouseDragStart != null) {
|
if (this.mouseDragStart != null) {
|
||||||
@@ -221,9 +221,9 @@ OpenLayers.Control.PanZoomBar.prototype =
|
|||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @param evt
|
* Perform cleanup when a mouseup event is received -- discover new zoom
|
||||||
* Perform cleanup when a mouseup event is received -- discover new zoom level
|
* level and switch to it.
|
||||||
* and switch to it.
|
* @param {OpenLayers.Event} evt
|
||||||
*/
|
*/
|
||||||
zoomBarUp:function(evt) {
|
zoomBarUp:function(evt) {
|
||||||
if (!OpenLayers.Event.isLeftClick(evt)) return;
|
if (!OpenLayers.Event.isLeftClick(evt)) return;
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ OpenLayers.Control.Panel.prototype =
|
|||||||
* To build a toolbar, you add a set of controls to it. addControls
|
* To build a toolbar, you add a set of controls to it. addControls
|
||||||
* lets you add a single control or a list of controls to the
|
* lets you add a single control or a list of controls to the
|
||||||
* Control Panel.
|
* Control Panel.
|
||||||
* @param OpenLayers.Control
|
* @param {OpenLayers.Control} controls
|
||||||
*/
|
*/
|
||||||
addControls: function(controls) {
|
addControls: function(controls) {
|
||||||
if (!(controls instanceof Array)) {
|
if (!(controls instanceof Array)) {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ OpenLayers.Format.GML.prototype =
|
|||||||
* This function is the core of the GML parsing code in OpenLayers.
|
* This function is the core of the GML parsing code in OpenLayers.
|
||||||
* It creates the geometries that are then attached to the returned
|
* It creates the geometries that are then attached to the returned
|
||||||
* feature, and calls parseAttributes() to get attribute data out.
|
* feature, and calls parseAttributes() to get attribute data out.
|
||||||
* @param DOMElement xmlNode
|
* @param {DOMElement} xmlNode
|
||||||
*/
|
*/
|
||||||
parseFeature: function(xmlNode) {
|
parseFeature: function(xmlNode) {
|
||||||
var geom;
|
var geom;
|
||||||
@@ -181,7 +181,7 @@ OpenLayers.Format.GML.prototype =
|
|||||||
* recursive function parse the attributes of a GML node.
|
* recursive function parse the attributes of a GML node.
|
||||||
* Searches for any child nodes which aren't geometries,
|
* Searches for any child nodes which aren't geometries,
|
||||||
* and gets their value.
|
* and gets their value.
|
||||||
* @param DOMElement xmlNode
|
* @param {DOMElement} xmlNode
|
||||||
*/
|
*/
|
||||||
parseAttributes: function(xmlNode) {
|
parseAttributes: function(xmlNode) {
|
||||||
var nodes = xmlNode.childNodes;
|
var nodes = xmlNode.childNodes;
|
||||||
@@ -302,8 +302,8 @@ OpenLayers.Format.GML.prototype =
|
|||||||
/**
|
/**
|
||||||
* Accept an OpenLayers.Feature.Vector, and build a geometry for it.
|
* Accept an OpenLayers.Feature.Vector, and build a geometry for it.
|
||||||
*
|
*
|
||||||
* @param OpenLayers.Feature.Vector feature
|
* @param {OpenLayers.Feature.Vector} feature
|
||||||
* @returns DOMElement
|
* @returns {DOMElement}
|
||||||
*/
|
*/
|
||||||
createFeatureXML: function(feature) {
|
createFeatureXML: function(feature) {
|
||||||
var geometryNode = this.buildGeometryNode(feature.geometry);
|
var geometryNode = this.buildGeometryNode(feature.geometry);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ OpenLayers.Format.GeoRSS.prototype =
|
|||||||
/**
|
/**
|
||||||
* Accept an OpenLayers.Feature.Vector, and build a geometry for it.
|
* Accept an OpenLayers.Feature.Vector, and build a geometry for it.
|
||||||
*
|
*
|
||||||
* @param OpenLayers.Feature.Vector feature
|
* @param {OpenLayers.Feature.Vector} feature
|
||||||
* @returns DOMElement
|
* @returns DOMElement
|
||||||
*/
|
*/
|
||||||
createFeatureXML: function(feature) {
|
createFeatureXML: function(feature) {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ OpenLayers.Format.KML.prototype =
|
|||||||
* This function is the core of the KML parsing code in OpenLayers.
|
* This function is the core of the KML parsing code in OpenLayers.
|
||||||
* It creates the geometries that are then attached to the returned
|
* It creates the geometries that are then attached to the returned
|
||||||
* feature, and calls parseAttributes() to get attribute data out.
|
* feature, and calls parseAttributes() to get attribute data out.
|
||||||
* @param DOMElement xmlNode
|
* @param {DOMElement} xmlNode
|
||||||
*/
|
*/
|
||||||
parseFeature: function(xmlNode) {
|
parseFeature: function(xmlNode) {
|
||||||
var geom;
|
var geom;
|
||||||
@@ -90,7 +90,7 @@ OpenLayers.Format.KML.prototype =
|
|||||||
* recursive function parse the attributes of a KML node.
|
* recursive function parse the attributes of a KML node.
|
||||||
* Searches for any child nodes which aren't geometries,
|
* Searches for any child nodes which aren't geometries,
|
||||||
* and gets their value.
|
* and gets their value.
|
||||||
* @param DOMElement xmlNode
|
* @param {DOMElement} xmlNode
|
||||||
*/
|
*/
|
||||||
parseAttributes: function(xmlNode) {
|
parseAttributes: function(xmlNode) {
|
||||||
var nodes = xmlNode.childNodes;
|
var nodes = xmlNode.childNodes;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ OpenLayers.Format.WFS.prototype =
|
|||||||
* only, which uses most of the code from the GML layer, and wraps
|
* only, which uses most of the code from the GML layer, and wraps
|
||||||
* it in transactional elements.
|
* it in transactional elements.
|
||||||
* @param {Object} options
|
* @param {Object} options
|
||||||
* @param OpenLayers.Layer layer
|
* @param {OpenLayers.Layer} layer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
initialize: function(options, layer) {
|
initialize: function(options, layer) {
|
||||||
@@ -42,7 +42,7 @@ OpenLayers.Format.WFS.prototype =
|
|||||||
* write
|
* write
|
||||||
* Takes a feature list, and generates a WFS-T Transaction
|
* Takes a feature list, and generates a WFS-T Transaction
|
||||||
*
|
*
|
||||||
* @param Array
|
* @param {Array}
|
||||||
*/
|
*/
|
||||||
write: function(features) {
|
write: function(features) {
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ OpenLayers.Format.WFS.prototype =
|
|||||||
* insert
|
* insert
|
||||||
* Takes a feature, and generates a WFS-T Transaction "Insert"
|
* Takes a feature, and generates a WFS-T Transaction "Insert"
|
||||||
*
|
*
|
||||||
* @param OpenLayers.Feature.Vector
|
* @param {OpenLayers.Feature.Vector} feature
|
||||||
*/
|
*/
|
||||||
insert: function(feature) {
|
insert: function(feature) {
|
||||||
var insertNode = document.createElementNS(this.wfsns, 'wfs:Insert');
|
var insertNode = document.createElementNS(this.wfsns, 'wfs:Insert');
|
||||||
@@ -100,7 +100,7 @@ OpenLayers.Format.WFS.prototype =
|
|||||||
* update
|
* update
|
||||||
* Takes a feature, and generates a WFS-T Transaction "Update"
|
* Takes a feature, and generates a WFS-T Transaction "Update"
|
||||||
*
|
*
|
||||||
* @param OpenLayers.Feature.Vector
|
* @param {OpenLayers.Feature.Vector} feature
|
||||||
*/
|
*/
|
||||||
update: function(feature) {
|
update: function(feature) {
|
||||||
if (!feature.fid) { alert("Can't update a feature for which there is no FID."); }
|
if (!feature.fid) { alert("Can't update a feature for which there is no FID."); }
|
||||||
@@ -133,7 +133,7 @@ OpenLayers.Format.WFS.prototype =
|
|||||||
* delete
|
* delete
|
||||||
* Takes a feature, and generates a WFS-T Transaction "Delete"
|
* Takes a feature, and generates a WFS-T Transaction "Delete"
|
||||||
*
|
*
|
||||||
* @param OpenLayers.Feature.Vector
|
* @param {OpenLayers.Feature.Vector} feature
|
||||||
*/
|
*/
|
||||||
remove: function(feature) {
|
remove: function(feature) {
|
||||||
if (!feature.attributes.fid) {
|
if (!feature.attributes.fid) {
|
||||||
|
|||||||
@@ -140,9 +140,10 @@ OpenLayers.Layer.prototype = {
|
|||||||
/** @type Boolean */
|
/** @type Boolean */
|
||||||
displayOutsideMaxExtent: false,
|
displayOutsideMaxExtent: false,
|
||||||
|
|
||||||
/** wrapDateLine -- #487 for more info.
|
/**
|
||||||
|
* wrapDateLine -- #487 for more info.
|
||||||
*
|
*
|
||||||
* @type @Boolean
|
* @type Boolean
|
||||||
*/
|
*/
|
||||||
wrapDateLine: false,
|
wrapDateLine: false,
|
||||||
|
|
||||||
@@ -309,7 +310,7 @@ OpenLayers.Layer.prototype = {
|
|||||||
* Set the tile size based on the map size. This also sets layer.imageSize
|
* Set the tile size based on the map size. This also sets layer.imageSize
|
||||||
* and layer.imageOffset for use by Tile.Image.
|
* and layer.imageOffset for use by Tile.Image.
|
||||||
*
|
*
|
||||||
* @param OpenLayers.Size
|
* @param {OpenLayers.Size}
|
||||||
*/
|
*/
|
||||||
setTileSize: function(size) {
|
setTileSize: function(size) {
|
||||||
var tileSize = (size) ? size :
|
var tileSize = (size) ? size :
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ OpenLayers.Layer.Vector.prototype =
|
|||||||
/**
|
/**
|
||||||
* Given a feature id, return the feature if it exists in the features array
|
* Given a feature id, return the feature if it exists in the features array
|
||||||
*
|
*
|
||||||
* @param String featureId
|
* @param {String} featureId
|
||||||
* @type OpenLayers.Feature.Vector
|
* @type OpenLayers.Feature.Vector
|
||||||
* @return A feature corresponding to the given featureId
|
* @return A feature corresponding to the given featureId
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user