Rename ol.source.StaticImage to ol.source.ImageStatic

This commit is contained in:
Tom Payne
2013-09-11 16:43:31 +02:00
parent a21ee997ba
commit d0216c80cd
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -510,7 +510,7 @@
*/ */
/** /**
* @typedef {Object} ol.source.StaticImageOptions * @typedef {Object} ol.source.ImageStaticOptions
* @property {Array.<ol.Attribution>|undefined} attributions Attributions. * @property {Array.<ol.Attribution>|undefined} attributions Attributions.
* @property {null|string|undefined} crossOrigin crossOrigin setting for image * @property {null|string|undefined} crossOrigin crossOrigin setting for image
* requests. * requests.
+1
View File
@@ -0,0 +1 @@
@exportClass ol.source.ImageStatic ol.source.ImageStaticOptions
@@ -1,4 +1,4 @@
goog.provide('ol.source.StaticImage'); goog.provide('ol.source.ImageStatic');
goog.require('ol.Image'); goog.require('ol.Image');
goog.require('ol.ImageUrlFunctionType'); goog.require('ol.ImageUrlFunctionType');
@@ -11,11 +11,11 @@ goog.require('ol.source.Image');
/** /**
* @constructor * @constructor
* @extends {ol.source.Image} * @extends {ol.source.Image}
* @param {ol.source.StaticImageOptions} options Static image options. * @param {ol.source.ImageStaticOptions} options Options.
*/ */
ol.source.StaticImage = function(options) { ol.source.ImageStatic = function(options) {
var imageFunction = ol.source.StaticImage.createImageFunction( var imageFunction = ol.source.ImageStatic.createImageFunction(
options.url); options.url);
var imageExtent = options.imageExtent; var imageExtent = options.imageExtent;
@@ -40,13 +40,13 @@ ol.source.StaticImage = function(options) {
imageExtent, imageResolution, imageSize, projection); imageExtent, imageResolution, imageSize, projection);
}; };
goog.inherits(ol.source.StaticImage, ol.source.Image); goog.inherits(ol.source.ImageStatic, ol.source.Image);
/** /**
* @inheritDoc * @inheritDoc
*/ */
ol.source.StaticImage.prototype.getImage = ol.source.ImageStatic.prototype.getImage =
function(extent, resolution, projection) { function(extent, resolution, projection) {
if (ol.extent.intersects(extent, this.image_.getExtent())) { if (ol.extent.intersects(extent, this.image_.getExtent())) {
return this.image_; return this.image_;
@@ -59,7 +59,7 @@ ol.source.StaticImage.prototype.getImage =
* @param {string|undefined} url URL. * @param {string|undefined} url URL.
* @return {ol.ImageUrlFunctionType} Function. * @return {ol.ImageUrlFunctionType} Function.
*/ */
ol.source.StaticImage.createImageFunction = function(url) { ol.source.ImageStatic.createImageFunction = function(url) {
return ( return (
/** /**
* @param {ol.Extent} extent Extent. * @param {ol.Extent} extent Extent.
-1
View File
@@ -1 +0,0 @@
@exportClass ol.source.StaticImage ol.source.StaticImageOptions