Merge pull request #2075 from ahocevar/api-docs-improved

More API doc improvements
This commit is contained in:
Andreas Hocevar
2014-05-15 22:35:53 +02:00
31 changed files with 154 additions and 101 deletions

View File

@@ -8,6 +8,12 @@ goog.require('ol.control.Zoom');
/**
* Set of default controls. Unless configured otherwise, this returns a
* collection containing an instance of each of the following controls:
* * {@link ol.control.Zoom}
* * {@link ol.control.Rotate}
* * {@link ol.control.Attribution}
* * {@link ol.control.Logo}
* @param {olx.control.DefaultsOptions=} opt_options Defaults options.
* @return {ol.Collection} Controls.
* @todo api

View File

@@ -68,6 +68,7 @@ ol.DeviceOrientationProperty = {
*
* @constructor
* @extends {ol.Object}
* @fires change Triggered when the device orientation changes.
* @param {olx.DeviceOrientationOptions=} opt_options Options.
* @todo api
*/

View File

@@ -18,6 +18,7 @@ goog.require('ol.style.Style');
/**
* @constructor
* @extends {ol.Object}
* @fires change Triggered when the geometry or style of the feature changes.
* @param {ol.geom.Geometry|Object.<string, *>=} opt_geometryOrValues
* Values or geometry.
* @todo api

View File

@@ -51,6 +51,7 @@ ol.GeolocationProperty = {
*
* @constructor
* @extends {ol.Object}
* @fires change Triggered when the position changes.
* @param {olx.GeolocationOptions=} opt_options Options.
* @todo api
*/

View File

@@ -13,7 +13,7 @@ goog.require('ol.geom.flat.deflate');
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPoint} center Center.
* @param {number=} opt_radius Radius.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api
*/
ol.geom.Circle = function(center, opt_radius, opt_layout) {

View File

@@ -46,6 +46,7 @@ ol.geom.GeometryLayout = {
/**
* @constructor
* @extends {ol.Observable}
* @fires change Triggered when the geometry changes.
* @todo api
*/
ol.geom.Geometry = function() {

View File

@@ -15,7 +15,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawLinearRing} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api
*/
ol.geom.LinearRing = function(coordinates, opt_layout) {

View File

@@ -19,7 +19,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawLineString} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api
*/
ol.geom.LineString = function(coordinates, opt_layout) {

View File

@@ -19,7 +19,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawMultiLineString} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api
*/
ol.geom.MultiLineString = function(coordinates, opt_layout) {

View File

@@ -17,7 +17,7 @@ goog.require('ol.math');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawMultiPoint} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api
*/
ol.geom.MultiPoint = function(coordinates, opt_layout) {

View File

@@ -24,7 +24,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawMultiPolygon} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api
*/
ol.geom.MultiPolygon = function(coordinates, opt_layout) {

View File

@@ -13,7 +13,7 @@ goog.require('ol.math');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPoint} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api
*/
ol.geom.Point = function(coordinates, opt_layout) {

View File

@@ -23,7 +23,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPolygon} coordinates Coordinates.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @todo api
*/
ol.geom.Polygon = function(coordinates, opt_layout) {

View File

@@ -35,7 +35,7 @@ ol.DragBoxEventType = {
BOXSTART: 'boxstart',
/**
* Triggered upon drag box end.
* @event ol.DragBoxEvent#boxstart
* @event ol.DragBoxEvent#boxend
* @todo api
*/
BOXEND: 'boxend'

View File

@@ -21,7 +21,16 @@ goog.require('ol.interaction.PinchZoom');
* different order for interactions, you will need to create your own
* {@link ol.interaction.Interaction} instances and insert them into a
* {@link ol.Collection} in the order you want before creating your
* {@link ol.Map} instance.
* {@link ol.Map} instance. The default set of interactions, in sequence, is:
* * {@link ol.interaction.DragRotate}
* * {@link ol.interaction.DoubleClickZoom}
* * {@link ol.interaction.DragPan}
* * {@link ol.interaction.PinchRotate}
* * {@link ol.interaction.PinchZoom}
* * {@link ol.interaction.KeyboardPan}
* * {@link ol.interaction.KeyboardZoom}
* * {@link ol.interaction.MouseWheelZoom}
* * {@link ol.interaction.DragZoom}
* @param {olx.interaction.DefaultsOptions=} opt_options Defaults options.
* @return {ol.Collection} A collection of interactions to be used with
* the ol.Map constructor's interactions option.

View File

@@ -13,6 +13,7 @@ goog.require('ol.source.Source');
* @constructor
* @extends {ol.layer.Base}
* @fires ol.render.Event
* @fires change Triggered when the state of the source changes.
* @param {olx.layer.LayerOptions} options Layer options.
* @todo api
*/

View File

@@ -27,6 +27,8 @@ ol.layer.GroupProperty = {
/**
* @constructor
* @extends {ol.layer.Base}
* @fires change Triggered when the state of the source of any of the layers of
* this group changes
* @param {olx.layer.GroupOptions=} opt_options Layer options.
* @todo api
*/

View File

@@ -158,7 +158,8 @@ ol.MapProperty = {
* @param {olx.MapOptions} options Map options.
* @fires ol.MapBrowserEvent
* @fires ol.MapEvent
* @fires ol.render.Event
* @fires ol.render.Event#postcompose
* @fires ol.render.Event#precompose
* @todo api
*/
ol.Map = function(options) {

View File

@@ -31,8 +31,7 @@ goog.inherits(ol.Observable, goog.events.EventTarget);
/**
* Dispatches a `change` event. Register a listener for this event to get
* notified of changes.
* Dispatches a `change` event.
* @fires change
* @todo api
*/

View File

@@ -35,6 +35,7 @@ ol.source.SourceOptions;
/**
* @constructor
* @extends {ol.Observable}
* @fires change Triggered when the state of the source changes.
* @param {ol.source.SourceOptions} options Source options.
*/
ol.source.Source = function(options) {

View File

@@ -3,7 +3,11 @@ goog.provide('ol.source.wms.ServerType');
/**
* Available server types: `'carmentaserver'`, `'geoserver'`, `'mapserver'`,
* `'qgis'`. These are servers that have vendor parameters beyond the WMS
* specification that OpenLayers can make use of.
* @enum {string}
* @todo api
*/
ol.source.wms.ServerType = {
CARMENTA_SERVER: 'carmentaserver',

View File

@@ -0,0 +1,3 @@
/**
* @namespace ol.source.wms
*/