Esri / Esri/oriented-imagery

error in https://oi.geocloud.com/api/v1.1/js/viewer.js

Open
#62 0 comments 0 reactions 1 assignee Claimed by @priya4991 View on GitHub
bug
Dominant language
CSS
Stars
41
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I registered the Web AppBuilder widget with my ArcGIS Portal 10.7.1 (customer-driven). Published an OIC successfully and can configure it for use in the widget. However, when identifying a location, the widget fails to return an image. Some digging shows what appears to be an error in 'createThumbnailUrl' in https://oi.geocloud.com/api/v1.1/js/viewer.js (line 1243 in browser formatted version).

```
else if ("A|" === t.Image.substr(0, 2)) {
var r = t.Image.split("|")
```

t at this point does not have an attribute ```Image```. It does however have an attribute ```image``` that has a valid URL to the returned image.

after setting:
```
t.Image = t.image
```
in the browser console for the images returned from the search, the app does display the images properly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.