Merge pull request #8642 from dimin/master

fixes for optional key passing, issue #8067 for tile sources
This commit is contained in:
Tim Schaub
2018-11-06 08:56:25 -07:00
committed by GitHub
3 changed files with 14 additions and 5 deletions

View File

@@ -23,6 +23,7 @@ import {wrapX, getForProjection as getTileGridForProjection} from '../tilegrid.j
* @property {import("../tilegrid/TileGrid.js").default} [tileGrid]
* @property {boolean} [wrapX=true]
* @property {number} [transition]
* @property {string} [key]
*/
@@ -83,7 +84,7 @@ class TileSource extends Source {
* @private
* @type {string}
*/
this.key_ = '';
this.key_ = options.key || '';
/**
* @protected