Code Monkey home page Code Monkey logo

attachment-viewer's Introduction

Attachment Viewer

Attachment Viewer is an ArcGIS Instant App that allows you to view photos, videos, and PDFs stored as feature attachments.

Instructions

  1. Fork and then clone the repo.

  2. Run yarn install

  3. Run yarn start. Browser will automatically open in http://localhost:3000.

  4. Test with different web maps with feature layers that support and contain attachments.

Requirements

  • Notepad or your favorite HTML editor
  • Web browser with access to the Internet

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Licensing

Copyright 2023 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.

attachment-viewer's People

Contributors

dependabot[bot] avatar rslibed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

attachment-viewer's Issues

AutoDetection of attachments layer by layer

Please allow auto detection of attachments.

I have several layers in the map. Each (or almost each) have attachments.
Allow the user to identify the object in the map and show the attachment(s).

image

Update to latest esri js version for improved selection widget

Hi, the selection widget in the instant app available in the 'current' (10.1/March 2022) version of ArcGIS Online has improved interactibility and more selection tools. Presumably that is due to the newer js version, but it's unclear if there are other changes to support that. Is it possible to get an updated version/release with version parity?

A valid gruntfile could not be found

On a windows 10 machine using visual studio code with powershell. I'm getting the following error when running "npm start".

image

Prior to this, I have updated powershells execution policy to enable remotely signed scripts.

Is the gruntfile missing from the repo?

Not showing pop-up/tooltip information on related featurelayers in mapcentric viewer

I use a webmap with 3 featureservicelayers related to 1 other featureservicelayer. The attachmentviewer is able to get the photo's and features of the related featureservicelayers, but is unable to show the pop-up/tooltip information in the designated window in the mapcentric viewer. I made sure mapCentricTooltipEnabled is set to true in the application.json file. I get a list of errors from the ESRI JavaScript 4 API with the following message: 'A related table ID is required on a layer to retrieve related data'. I double checked the featureservice definition with the ESRI REST interface and a relatedTableID is available in the service definition. Note: For the application viewer I do not need to see the related records of a feature, this is not a new application feature request. I just wish to see the feature attributes of the selected feature.
image

Photos not appearing without refreshing browser

Issue:
Adding new photos into a layer from other apps, I expect that the photos would appear within Attachment Viewer without having to do a refresh of the browser.

Currently a thumbnail icon appears without the photo. Expectation is that it would also appear at the top (which is how the list has been configured to sort). Happy if the refresh happens when you pan the map, but another enhancement would be to perhaps have refresh setting in the app template settings?

image

Environment:

  • ArcGIS Online
  • Built in Attachment Viewer app within ArcGIS Online
  • Replicated in Chrome and IE Edge

Replicating the Issue - Video (Includes audio)

How to configure for Portal ?

Hi,
Does this attachment-viewer support Portal for ArcGIS ?
I have Survey123 app enabled with multiple photos in my Portal.
How do I configure this app for Portal for ArcGIS ?

Thanks,
Mayur

task for updating config

I've been looking at using this app, but it seems that the build tasks don't inlcude anything for updating the config files in the dist folder. Is it accurate to say that, in order to rebuild this app with a modified config, I will have to add to the npm/grunt tasks? If so, do you have any recommendations before I begin?

Using a Proxy?

Is there a UseProxy setting in addition to the 'proxyUrl' variable in dist/application.json file? I have my proxyUrl configured but web service calls do not seem to be going through the proxy. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.