Remove ol.icon.renderIcon

This commit is contained in:
Éric Lemoine
2013-12-18 22:06:32 +01:00
parent e44aa1e14a
commit 4b9de0a93c
2 changed files with 0 additions and 32 deletions

View File

@@ -1 +0,0 @@
@exportSymbol ol.icon.renderIcon

View File

@@ -1,31 +0,0 @@
goog.provide('ol.icon');
goog.require('ol.style.Image');
/**
* @param {string} src Image source URI.
* @param {ol.Size=} opt_size Image size.
* @return {ol.style.Image} Image.
*/
ol.icon.renderIcon = function(src, opt_size) {
/**
* @type {ol.Size}
*/
var size = goog.isDef(opt_size) ? opt_size : null;
/**
* @type {ol.Pixel}
*/
var anchor = !goog.isNull(size) ? [size[0] / 2, size[1] / 2] : null;
return new ol.style.Image({
anchor: anchor,
size: size,
src: src,
rotation: 0,
snapToPixel: undefined,
subtractViewRotation: false
});
};