Skip to content

Commit

Permalink
Merge pull request Esri#1192 from danieloliveira117/master
Browse files Browse the repository at this point in the history
Add request as import in `BasemapLayer.js` (Esri#1191)
  • Loading branch information
jwasilgeo authored Apr 1, 2020
2 parents 54ff2c4 + 23368f9 commit db04940
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 db04940

Please sign in to comment.