Skip to content

Commit

Permalink
Merge pull request #56 from Esri/hotfix_wab
Browse files Browse the repository at this point in the history
fixes #55
  • Loading branch information
Priyadarshini Dutta authored Apr 26, 2021
2 parents e281049 + d451775 commit 813b927
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Widgets/WebAppBuilder3D/OrientedImagery3D/Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ define([
});

IdentityManager.useSignInPage = false;
this.oauthInfo = new OAuthInfo({
appId: "orientedimagery",
portalUrl: "https://www.arcgis.com",
popup: true
});
IdentityManager.registerOAuthInfos([this.oauthInfo]);
//#837
// this.oauthInfo = new OAuthInfo({
// appId: "orientedimagery",
// portalUrl: "https://www.arcgis.com",
// popup: true
// });
// IdentityManager.registerOAuthInfos([this.oauthInfo]);

this.sceneView.map.add(this.graphicsLayer);
this.sceneView.environment.lighting.cameraTrackingEnabled = true;
Expand Down Expand Up @@ -439,7 +440,7 @@ define([
this.searchImages(this.selectedPoint, parseInt(this.selectedGraphicProperties.id));
}
//#607 #614
else if (response.results[0].graphic.attributes && response.results[0].graphic.attributes.OBJECTID && response.results[0].graphic.layer.url.includes('FeatureServer')) {
else if (response.results[0].graphic.attributes && response.results[0].graphic.attributes.OBJECTID && response.results[0].graphic.layer.url.includes('FeatureServer') && response.results[0].graphic.layer.url === this.config.oic[0].serviceUrl) { //875 issue fix
this.showImage(evt.mapPoint, response.results[0].graphic.attributes.OBJECTID);
} else {
this.selectedPoint = mapPoint; //#596
Expand Down

0 comments on commit 813b927

Please # to comment.