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