Update logos in renderers

This commit is contained in:
Tom Payne
2013-04-05 18:14:25 +02:00
parent cca770097b
commit 5680b89c48
7 changed files with 20 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ goog.require('ol.TileState');
goog.require('ol.layer.Layer');
goog.require('ol.layer.LayerProperty');
goog.require('ol.layer.LayerState');
goog.require('ol.source.Source');
goog.require('ol.source.TileSource');
@@ -220,6 +221,19 @@ ol.renderer.Layer.prototype.updateAttributions =
};
/**
* @protected
* @param {ol.FrameState} frameState Frame state.
* @param {ol.source.Source} source Source.
*/
ol.renderer.Layer.prototype.updateLogos = function(frameState, source) {
var logo = source.getLogo();
if (goog.isDef(logo)) {
frameState.logos[logo] = true;
}
};
/**
* @protected
* @param {Object.<string, Object.<string, ol.TileRange>>} usedTiles Used tiles.