Merge pull request #2773 from elemoine/getimage
Type-related changes to ol.style.Image
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user