Rename ol3Logo to logo in map options
This commit is contained in:
@@ -172,9 +172,9 @@ ol.Map = function(options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {boolean}
|
||||
* @type {Object}
|
||||
*/
|
||||
this.ol3Logo_ = optionsInternal.ol3Logo;
|
||||
this.logos_ = optionsInternal.logos;
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -1209,7 +1209,7 @@ ol.Map.prototype.renderFrame_ = function(time) {
|
||||
index: this.frameIndex_++,
|
||||
layerStates: layerStates,
|
||||
layerStatesArray: layerStatesArray,
|
||||
logos: {},
|
||||
logos: this.logos_,
|
||||
pixelRatio: this.pixelRatio_,
|
||||
pixelToCoordinateMatrix: this.pixelToCoordinateMatrix_,
|
||||
postRenderFunctions: [],
|
||||
@@ -1222,9 +1222,6 @@ ol.Map.prototype.renderFrame_ = function(time) {
|
||||
viewHints: viewHints,
|
||||
wantedTiles: {}
|
||||
});
|
||||
if (this.ol3Logo_) {
|
||||
frameState.logos[ol.OL3_LOGO_URL] = ol.OL3_URL;
|
||||
}
|
||||
}
|
||||
|
||||
var preRenderFunctions = this.preRenderFunctions_;
|
||||
@@ -1382,7 +1379,7 @@ ol.Map.prototype.unskipFeature = function(feature) {
|
||||
* deviceOptions: olx.DeviceOptions,
|
||||
* interactions: ol.Collection,
|
||||
* keyboardEventTarget: (Element|Document),
|
||||
* ol3Logo: boolean,
|
||||
* logos: Object,
|
||||
* overlays: ol.Collection,
|
||||
* rendererConstructor:
|
||||
* function(new: ol.renderer.Map, Element, ol.Map),
|
||||
@@ -1414,7 +1411,11 @@ ol.Map.createOptionsInternal = function(options) {
|
||||
*/
|
||||
var values = {};
|
||||
|
||||
var ol3Logo = goog.isDef(options.ol3Logo) ? options.ol3Logo : true;
|
||||
var logos = {};
|
||||
if (!goog.isDef(options.logo) ||
|
||||
(goog.isBoolean(options.logo) && options.logo)) {
|
||||
logos[ol.OL3_LOGO_URL] = ol.OL3_URL;
|
||||
}
|
||||
|
||||
var layerGroup = (options.layers instanceof ol.layer.Group) ?
|
||||
options.layers : new ol.layer.Group({layers: options.layers});
|
||||
@@ -1512,7 +1513,7 @@ ol.Map.createOptionsInternal = function(options) {
|
||||
deviceOptions: deviceOptions,
|
||||
interactions: interactions,
|
||||
keyboardEventTarget: keyboardEventTarget,
|
||||
ol3Logo: ol3Logo,
|
||||
logos: logos,
|
||||
overlays: overlays,
|
||||
rendererConstructor: rendererConstructor,
|
||||
values: values
|
||||
|
||||
Reference in New Issue
Block a user