Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mhogeweg opened this issue Aug 3, 2021 · 0 comments
Open

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

mhogeweg opened this issue Aug 3, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mhogeweg
Copy link
Member

mhogeweg commented Aug 3, 2021

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.

@abhiataero abhiataero added the bug Something isn't working label Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants