diff --git a/src/Layers/BasemapLayer.js b/src/Layers/BasemapLayer.js index 76be926de..96eee9542 100644 --- a/src/Layers/BasemapLayer.js +++ b/src/Layers/BasemapLayer.js @@ -204,7 +204,7 @@ export var BasemapLayer = TileLayer.extend({ Util.setOptions(this, tileOptions); - if (this.options.token) { + if (this.options.token && !config.urlTemplate.includes('token=')) { config.urlTemplate += ('?token=' + this.options.token); }