From 4c6289278b7d6707c2a44290bafc5ba35b0178ee Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Thu, 23 Apr 2015 13:31:26 +0200 Subject: [PATCH 01/11] Add basic docs for kmlformat --- src/ol/format/kmlformat.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ol/format/kmlformat.js b/src/ol/format/kmlformat.js index 6bd5993d26..52cdfad2bc 100644 --- a/src/ol/format/kmlformat.js +++ b/src/ol/format/kmlformat.js @@ -1822,6 +1822,8 @@ ol.format.KML.prototype.readFeaturesFromNode = function(node, opt_options) { /** + * Read the name of the KML. + * * @param {Document|Node|string} source Souce. * @return {string|undefined} Name. * @api stable @@ -1889,7 +1891,9 @@ ol.format.KML.prototype.readNameFromNode = function(node) { /** - * @param {Document|Node|string} source Souce. + * Read the network links of the KML. + * + * @param {Document|Node|string} source Source. * @return {Array.} Network links. * @api */ From 4fc76720892ddd4410f8c298546cc2e9ae69d62a Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Thu, 23 Apr 2015 13:31:39 +0200 Subject: [PATCH 02/11] Add basic docs for wfsformat --- src/ol/format/wfsformat.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ol/format/wfsformat.js b/src/ol/format/wfsformat.js index 72540c29e3..e78e179b12 100644 --- a/src/ol/format/wfsformat.js +++ b/src/ol/format/wfsformat.js @@ -139,6 +139,8 @@ ol.format.WFS.prototype.readFeaturesFromNode = function(node, opt_options) { /** + * Read transaction response of the source. + * * @param {Document|Node|Object|string} source Source. * @return {ol.format.WFS.TransactionResponse|undefined} Transaction response. * @api stable @@ -160,6 +162,8 @@ ol.format.WFS.prototype.readTransactionResponse = function(source) { /** + * Read feature collection metadata of the source. + * * @param {Document|Node|Object|string} source Source. * @return {ol.format.WFS.FeatureCollectionMetadata|undefined} * FeatureCollection metadata. @@ -617,6 +621,8 @@ ol.format.WFS.writeGetFeature_ = function(node, featureTypes, objectStack) { /** + * Encode format as WFS `GetFeature` and return the Node. + * * @param {olx.format.WFSWriteGetFeatureOptions} options Options. * @return {Node} Result. * @api stable @@ -667,6 +673,8 @@ ol.format.WFS.prototype.writeGetFeature = function(options) { /** + * Encode format as WFS `Transaction` and return the Node. + * * @param {Array.} inserts The features to insert. * @param {Array.} updates The features to update. * @param {Array.} deletes The features to delete. From 52ad0bc62f55e308dfd5f05b65ac331e9806f9ea Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Thu, 23 Apr 2015 13:31:50 +0200 Subject: [PATCH 03/11] Add basic docs for wktformat --- src/ol/format/wktformat.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/format/wktformat.js b/src/ol/format/wktformat.js index c252bd30cd..edde426c9c 100644 --- a/src/ol/format/wktformat.js +++ b/src/ol/format/wktformat.js @@ -18,6 +18,10 @@ goog.require('ol.geom.Polygon'); /** + * @classdesc + * Geometry format for reading and writing data in the `WellKnownText` (WKT) + * format. + * * @constructor * @extends {ol.format.TextFeature} * @param {olx.format.WKTOptions=} opt_options Options. From cbc0ae730ad4a3a54eee4d7008706294b6aafb58 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Thu, 23 Apr 2015 14:58:18 +0200 Subject: [PATCH 04/11] Add basic docs for events.condition.* --- src/ol/events/condition.js | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/src/ol/events/condition.js b/src/ol/events/condition.js index 1141a64256..de8c3d20fe 100644 --- a/src/ol/events/condition.js +++ b/src/ol/events/condition.js @@ -19,6 +19,9 @@ ol.events.ConditionType; /** + * Return `true` if only the alt-key is pressed, `false` otherwise (e.g. when + * additionally the shift-key is pressed). + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True if only the alt key is pressed. * @api stable @@ -33,6 +36,9 @@ ol.events.condition.altKeyOnly = function(mapBrowserEvent) { /** + * Return `true` if only the alt-key and shift-key is pressed, `false` otherwise + * (e.g. when additionally the platform-modifier-key is pressed). + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True if only the alt and shift keys are pressed. * @api stable @@ -47,7 +53,8 @@ ol.events.condition.altShiftKeysOnly = function(mapBrowserEvent) { /** - * Always true. + * Return always true. + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True. * @function @@ -57,6 +64,8 @@ ol.events.condition.always = goog.functions.TRUE; /** + * Return `true` if the event is a `click` event, `false` otherwise. + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True if the event is a map `click` event. * @api stable @@ -67,7 +76,8 @@ ol.events.condition.click = function(mapBrowserEvent) { /** - * Always false. + * Return always false. + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} False. * @function @@ -77,6 +87,9 @@ ol.events.condition.never = goog.functions.FALSE; /** + * Return `true` if the browser event is a `pointermove` event, `false` + * otherwise. + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True if the browser event is a `pointermove` event. * @api @@ -87,6 +100,8 @@ ol.events.condition.pointerMove = function(mapBrowserEvent) { /** + * Return `true` if the event is a map `singleclick` event, `false` otherwise. + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True if the event is a map `singleclick` event. * @api stable @@ -97,6 +112,9 @@ ol.events.condition.singleClick = function(mapBrowserEvent) { /** + * Return `true` if no modifier key (alt-, shift- or platform-modifier-key) is + * pressed. + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True only if there no modifier keys are pressed. * @api stable @@ -111,6 +129,9 @@ ol.events.condition.noModifierKeys = function(mapBrowserEvent) { /** + * Return `true` if only the platform-modifier-key (e.g. the windows-key) is + * pressed, `false` otherwise (e.g. when additionally the shift-key is pressed). + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True if only the platform modifier key is pressed. * @api stable @@ -125,6 +146,9 @@ ol.events.condition.platformModifierKeyOnly = function(mapBrowserEvent) { /** + * Return `true` if only the shift-key is pressed, `false` otherwise (e.g. when + * additionally the alt-key is pressed). + * * @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event. * @return {boolean} True if only the shift key is pressed. * @api stable @@ -139,6 +163,9 @@ ol.events.condition.shiftKeyOnly = function(mapBrowserEvent) { /** + * Return `true` if the target element is not editable, i.e. not a ``-, + * `