Skip to content

Commit

Permalink
Add request as import (Esri#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieloliveira117 committed Mar 31, 2020
1 parent ff0e03d commit 1511d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Layers/BasemapLayer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { TileLayer, Util } from 'leaflet';
import { pointerEvents } from '../Support';
import { request } from '../Request';
import {
setEsriAttribution,
_getAttributionData,
Expand Down Expand Up @@ -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]) {
Expand Down

0 comments on commit 1511d43

Please sign in to comment.