Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyhutchins committed Oct 4, 2019
2 parents 5927fa5 + e42396d commit 002147e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions support/itemUtils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion support/itemUtils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions support/itemUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ export function createWebMapFromItem(
portalItem: item
});
return wm.load().then(() => {
return _updateProxiedLayers(wm, appProxies);
return wm.basemap.load().then(() => {
return _updateProxiedLayers(wm, appProxies);
});
});
});
}
Expand All @@ -132,7 +134,9 @@ export function createWebSceneFromItem(
portalItem: item
});
return ws.load().then(() => {
return _updateProxiedLayers(ws, appProxies);
return ws.basemap.load().then(() => {
return _updateProxiedLayers(ws, appProxies);
});
});
});
}
Expand Down Expand Up @@ -197,7 +201,7 @@ function _updateProxiedLayers(
}

appProxies.forEach(proxy => {
webItem.layers.forEach((layer: any) => {
webItem.allLayers.forEach((layer: any) => {
if (layer.url === proxy.sourceUrl) {
layer.url = proxy.proxyUrl;
}
Expand Down

0 comments on commit 002147e

Please sign in to comment.