Skip to content

Commit

Permalink
Import DataSource 01 Restructuring - wip (rename ngeox.datasource.Dat…
Browse files Browse the repository at this point in the history
…aSourceLayer --> OGCLayer)
  • Loading branch information
adube committed Oct 3, 2017
1 parent 84e22f7 commit b5df3d0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
74 changes: 37 additions & 37 deletions options/ngeox.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,42 +942,6 @@ ngeox.WfsPermalinkOptions.prototype.maxFeatures;
ngeox.datasource;


/**
* The definition of a single layer (WMS) and/or featureType (WFS).
* @record
* @struct
*/
ngeox.datasource.DataSourceLayer = function() {};


/**
* The maximum resolution the layer should be rendered (when visible).
* @type {number|undefined}
*/
ngeox.datasource.DataSourceLayer.prototype.maxResolution;


/**
* The minimum resolution the layer should be rendered (when visible).
* @type {number|undefined}
*/
ngeox.datasource.DataSourceLayer.prototype.minResolution;


/**
* The layer name (WMS) and/or feature type name (WFS)
* @type {string}
*/
ngeox.datasource.DataSourceLayer.prototype.name;


/**
* Whether the the layer is queryable or not. Defaults to `false`.
* @type {boolean|undefined}
*/
ngeox.datasource.DataSourceLayer.prototype.queryable;


/**
* The options required to create a `ngeox.datasource.DataSource`.
* @record
Expand Down Expand Up @@ -1134,7 +1098,7 @@ ngeox.datasource.OGCOptions.prototype.ogcImageType;
* A list of layer definitions that are used by (WMS) and (WFS) queries.
* These are **not** used by the (WMTS) queries (the wmtsLayers is used
* by WMTS queries).
* @type {Array.<!ngeox.datasource.DataSourceLayer>|undefined}
* @type {Array.<!ngeox.datasource.OGCLayer>|undefined}
*/
ngeox.datasource.OGCOptions.prototype.ogcLayers;

Expand Down Expand Up @@ -1370,6 +1334,42 @@ ngeox.datasource.OGC.prototype.combinableWithDataSourceForWMS = function(dataSou
ngeox.datasource.OGC.prototype.haveTheSameActiveDimensions = function(dataSource) {};


/**
* The definition of a single layer (WMS) and/or featureType (WFS).
* @record
* @struct
*/
ngeox.datasource.OGCLayer = function() {};


/**
* The maximum resolution the layer should be rendered (when visible).
* @type {number|undefined}
*/
ngeox.datasource.OGCLayer.prototype.maxResolution;


/**
* The minimum resolution the layer should be rendered (when visible).
* @type {number|undefined}
*/
ngeox.datasource.OGCLayer.prototype.minResolution;


/**
* The layer name (WMS) and/or feature type name (WFS)
* @type {string}
*/
ngeox.datasource.OGCLayer.prototype.name;


/**
* Whether the the layer is queryable or not. Defaults to `false`.
* @type {boolean|undefined}
*/
ngeox.datasource.OGCLayer.prototype.queryable;


/**
* Namespace.
* @type {Object}
Expand Down
4 changes: 2 additions & 2 deletions src/datasource/ogc.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ngeo.datasource.OGC = class extends ngeo.datasource.DataSource {
* A list of layer definitions that are used by (WMS) and (WFS) queries.
* These are **not** used by the (WMTS) queries (the wmtsLayers is used
* by WMTS queries).
* @type {?Array.<!ngeox.datasource.DataSourceLayer>}
* @type {?Array.<!ngeox.datasource.OGCLayer>}
* @private
*/
this.ogcLayers_ = options.ogcLayers || null;
Expand Down Expand Up @@ -456,7 +456,7 @@ ngeo.datasource.OGC = class extends ngeo.datasource.DataSource {
}

/**
* @return {?Array.<!ngeox.datasource.DataSourceLayer>} OGC layers
* @return {?Array.<!ngeox.datasource.OGCLayer>} OGC layers
* @export
*/
get ogcLayers() {
Expand Down

0 comments on commit b5df3d0

Please sign in to comment.