Add logo option to ol.source.Source subclasses

This commit is contained in:
Tom Payne
2013-04-05 18:12:12 +02:00
parent 6c90bcc5cd
commit a876332f0e
4 changed files with 8 additions and 0 deletions
+2
View File
@@ -16,6 +16,7 @@ goog.require('ol.source.Source');
* @typedef {{attributions: (Array.<ol.Attribution>|undefined), * @typedef {{attributions: (Array.<ol.Attribution>|undefined),
* crossOrigin: (null|string|undefined), * crossOrigin: (null|string|undefined),
* extent: (null|ol.Extent|undefined), * extent: (null|ol.Extent|undefined),
* logo: (string|undefined),
* projection: ol.ProjectionLike, * projection: ol.ProjectionLike,
* resolutions: (Array.<number>|undefined), * resolutions: (Array.<number>|undefined),
* imageUrlFunction: (ol.ImageUrlFunctionType| * imageUrlFunction: (ol.ImageUrlFunctionType|
@@ -36,6 +37,7 @@ ol.source.ImageSource = function(options) {
goog.base(this, { goog.base(this, {
attributions: options.attributions, attributions: options.attributions,
extent: options.extent, extent: options.extent,
logo: options.logo,
projection: options.projection projection: options.projection
}); });
+2
View File
@@ -19,6 +19,7 @@ goog.require('ol.tilegrid.TileGrid');
* @typedef {{attributions: (Array.<ol.Attribution>|undefined), * @typedef {{attributions: (Array.<ol.Attribution>|undefined),
* crossOrigin: (null|string|undefined), * crossOrigin: (null|string|undefined),
* extent: (ol.Extent|undefined), * extent: (ol.Extent|undefined),
* logo: (string|undefined),
* opaque: (boolean|undefined), * opaque: (boolean|undefined),
* projection: ol.ProjectionLike, * projection: ol.ProjectionLike,
* tileGrid: (ol.tilegrid.TileGrid|undefined), * tileGrid: (ol.tilegrid.TileGrid|undefined),
@@ -38,6 +39,7 @@ ol.source.ImageTileSource = function(options) {
goog.base(this, { goog.base(this, {
attributions: options.attributions, attributions: options.attributions,
extent: options.extent, extent: options.extent,
logo: options.logo,
opaque: options.opaque, opaque: options.opaque,
projection: options.projection, projection: options.projection,
tileGrid: options.tileGrid tileGrid: options.tileGrid
+2
View File
@@ -14,6 +14,7 @@ goog.require('ol.tilegrid.TileGrid');
/** /**
* @typedef {{attributions: (Array.<ol.Attribution>|undefined), * @typedef {{attributions: (Array.<ol.Attribution>|undefined),
* extent: (ol.Extent|undefined), * extent: (ol.Extent|undefined),
* logo: (string|undefined),
* opaque: (boolean|undefined), * opaque: (boolean|undefined),
* projection: ol.ProjectionLike, * projection: ol.ProjectionLike,
* tileGrid: (ol.tilegrid.TileGrid|undefined)}} * tileGrid: (ol.tilegrid.TileGrid|undefined)}}
@@ -32,6 +33,7 @@ ol.source.TileSource = function(tileSourceOptions) {
goog.base(this, { goog.base(this, {
attributions: tileSourceOptions.attributions, attributions: tileSourceOptions.attributions,
extent: tileSourceOptions.extent, extent: tileSourceOptions.extent,
logo: tileSourceOptions.logo,
projection: tileSourceOptions.projection projection: tileSourceOptions.projection
}); });
+2
View File
@@ -19,6 +19,7 @@ goog.require('ol.tilegrid.XYZ');
* @typedef {{attributions: (Array.<ol.Attribution>|undefined), * @typedef {{attributions: (Array.<ol.Attribution>|undefined),
* crossOrigin: (string|undefined), * crossOrigin: (string|undefined),
* extent: (ol.Extent|undefined), * extent: (ol.Extent|undefined),
* logo: (string|undefined),
* maxZoom: number, * maxZoom: number,
* projection: (ol.Projection|undefined), * projection: (ol.Projection|undefined),
* tileUrlFunction: (ol.TileUrlFunctionType|undefined), * tileUrlFunction: (ol.TileUrlFunctionType|undefined),
@@ -105,6 +106,7 @@ ol.source.XYZ = function(xyzOptions) {
attributions: xyzOptions.attributions, attributions: xyzOptions.attributions,
crossOrigin: xyzOptions.crossOrigin, crossOrigin: xyzOptions.crossOrigin,
extent: xyzOptions.extent, extent: xyzOptions.extent,
logo: xyzOptions.logo,
projection: projection, projection: projection,
tileGrid: tileGrid, tileGrid: tileGrid,
tileUrlFunction: tileUrlFunction tileUrlFunction: tileUrlFunction