Merge pull request #2773 from elemoine/getimage

Type-related changes to ol.style.Image
This commit is contained in:
Éric Lemoine
2014-09-30 13:51:01 +02:00
3 changed files with 8 additions and 3 deletions

View File

@@ -120,7 +120,8 @@ ol.style.Circle.prototype.getHitDetectionImage = function(pixelRatio) {
/**
* @inheritDoc
* @param {number} pixelRatio Pixel ratio.
* @return {HTMLCanvasElement} Canvas element.
* @api
*/
ol.style.Circle.prototype.getImage = function(pixelRatio) {

View File

@@ -228,7 +228,8 @@ ol.style.Icon.prototype.getAnchor = function() {
/**
* @inheritDoc
* @param {number} pixelRatio Pixel ratio.
* @return {Image} Image element.
* @api
*/
ol.style.Icon.prototype.getImage = function(pixelRatio) {

View File

@@ -26,10 +26,12 @@ ol.style.ImageOptions;
/**
* @classdesc
* Set image style for vector features.
* Abstract base class; used for creating subclasses and not instantiated in
* apps. Base class for {@link ol.style.Icon} and {@link ol.style.Circle}.
*
* @constructor
* @param {ol.style.ImageOptions} options Options.
* @api
*/
ol.style.Image = function(options) {
@@ -119,6 +121,7 @@ ol.style.Image.prototype.getAnchor = goog.abstractMethod;
* @function
* @param {number} pixelRatio Pixel ratio.
* @return {HTMLCanvasElement|HTMLVideoElement|Image} Image element.
* @api
*/
ol.style.Image.prototype.getImage = goog.abstractMethod;