Remove 'attribution' option from ol.source.OSMOptions
This commit is contained in:
@@ -503,7 +503,6 @@
|
||||
|
||||
/**
|
||||
* @typedef {Object} ol.source.OSMOptions
|
||||
* @property {ol.Attribution|undefined} attribution Attribution.
|
||||
* @property {Array.<ol.Attribution>|undefined} attributions Attributions.
|
||||
* @property {number|undefined} maxZoom Max zoom.
|
||||
* @property {string|undefined} url URL.
|
||||
|
||||
@@ -17,8 +17,6 @@ ol.source.OSM = function(opt_options) {
|
||||
var attributions;
|
||||
if (goog.isDef(options.attributions)) {
|
||||
attributions = options.attributions;
|
||||
} else if (goog.isDef(options.attribution)) {
|
||||
attributions = [options.attribution];
|
||||
} else {
|
||||
attributions = ol.source.OSM.ATTRIBUTIONS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user