From 7e93903a7dfd0a3f1bbeb72aaa3a9ba172267ea3 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Wed, 22 Sep 2021 08:44:32 -0500 Subject: [PATCH 1/2] added deprecation notice (warning) to BasemapLayer --- src/Layers/BasemapLayer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Layers/BasemapLayer.js b/src/Layers/BasemapLayer.js index a2c2a27a5..21f69119b 100644 --- a/src/Layers/BasemapLayer.js +++ b/src/Layers/BasemapLayer.js @@ -223,6 +223,11 @@ export var BasemapLayer = TileLayer.extend({ Util.setOptions(this, tileOptions); + // Deprecation notice: + if(!this.options.ignoreDeprecationWarning) { + console.warn('WARNING: L.esri.BasemapLayer uses data services that are in mature support and are not being updated. Please use L.esri.Vector.vectorBasemapLayer instead. More info: https://esriurl.com/TODO'); + } + if (this.options.token && config.urlTemplate.indexOf('token=') === -1) { config.urlTemplate += ('?token=' + this.options.token); } From bdb61d4a4ffd65dd720c642e3bc0783ec7d5f854 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Thu, 23 Sep 2021 14:31:58 -0500 Subject: [PATCH 2/2] Update URL --- src/Layers/BasemapLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Layers/BasemapLayer.js b/src/Layers/BasemapLayer.js index 21f69119b..a9b6d9cd3 100644 --- a/src/Layers/BasemapLayer.js +++ b/src/Layers/BasemapLayer.js @@ -225,7 +225,7 @@ export var BasemapLayer = TileLayer.extend({ // Deprecation notice: if(!this.options.ignoreDeprecationWarning) { - console.warn('WARNING: L.esri.BasemapLayer uses data services that are in mature support and are not being updated. Please use L.esri.Vector.vectorBasemapLayer instead. More info: https://esriurl.com/TODO'); + console.warn('WARNING: L.esri.BasemapLayer uses data services that are in mature support and are not being updated. Please use L.esri.Vector.vectorBasemapLayer instead. More info: https://esriurl.com/esri-leaflet-basemap'); } if (this.options.token && config.urlTemplate.indexOf('token=') === -1) {