From 1511d430cde56095a2cf039c76985c43cd690924 Mon Sep 17 00:00:00 2001 From: Daniel Oliveira Date: Tue, 31 Mar 2020 16:16:08 +0100 Subject: [PATCH] Add request as import (#1191) --- src/Layers/BasemapLayer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Layers/BasemapLayer.js b/src/Layers/BasemapLayer.js index 2ec17a146..9bf906a91 100644 --- a/src/Layers/BasemapLayer.js +++ b/src/Layers/BasemapLayer.js @@ -1,5 +1,6 @@ import { TileLayer, Util } from 'leaflet'; import { pointerEvents } from '../Support'; +import { request } from '../Request'; import { setEsriAttribution, _getAttributionData, @@ -302,7 +303,7 @@ function _fetchTilemap (evt) { var tilemapUrl = tileUrl.replace(/tile/, 'tilemap') + '/8/8'; // an array of booleans in the response indicate missing tiles - L.esri.request(tilemapUrl, {}, function (err, response) { + request(tilemapUrl, {}, function (err, response) { if (!err) { for (var i = 0; i < response.data.length; i++) { if (!response.data[i]) {