Replace goog.getUid with ol.getUid
This commit is contained in:
@@ -60,7 +60,7 @@ ol.style.Fill.prototype.getChecksum = function() {
|
||||
this.color_ instanceof CanvasPattern ||
|
||||
this.color_ instanceof CanvasGradient
|
||||
) {
|
||||
this.checksum_ = goog.getUid(this.color_).toString();
|
||||
this.checksum_ = ol.getUid(this.color_).toString();
|
||||
} else {
|
||||
this.checksum_ = 'f' + (this.color_ ?
|
||||
ol.color.asString(this.color_) : '-');
|
||||
|
||||
@@ -109,7 +109,7 @@ ol.style.Icon = function(opt_options) {
|
||||
'imgSize must be set when image is provided');
|
||||
|
||||
if ((src === undefined || src.length === 0) && image) {
|
||||
src = image.src || goog.getUid(image).toString();
|
||||
src = image.src || ol.getUid(image).toString();
|
||||
}
|
||||
goog.asserts.assert(src !== undefined && src.length > 0,
|
||||
'must provide a defined and non-empty src or image');
|
||||
|
||||
Reference in New Issue
Block a user