POST
|
Oh, wow!!! If that isn't the most beautiful thing I've seen all week, I don't know what is! That works PERFECTLY. THANK YOU!!! Bradley
... View more
06-20-2014
10:22 AM
|
0
|
0
|
230
|
POST
|
Hello, After several days of combing through tutorials, API docs, and forums, and after many hours of coding and implementing, I've determined it's time to ask the question: is this even possible? Here's the scenario: 1. I have created a map with the pertinent layers using my organization-access AGOL account. I have also uploaded several .PDF files to my account. 2. I created a JavaScript app, based on a template downloaded from ArcGIS.com, that should allow me to view the map in various browsers, including mobile browsers. 3. I added a "heatmap" layer to this map using the ESRI-suggested heatmap.js. All of the above works great. The app makes you log in, and if you're not me, you can't see anything. But if you are me, then you get the layers, the heatmap, etc. 4. I would like to add some links to my app. They DO NOT need to be associated with the fields in my data--they can just be static(ish) links off to the side. These links need to point to, and open, the .PDF files I have mentioned. This I do not seem to be able to do. I believe CORS works fine. I set up a proxy to circumvent it anyway. I've successfully stored (and loaded) the credential information used to bring up the map, but that doesn't seem to help. Perhaps it is not used when looking up files? Or maybe I haven't associated it correctly. If I share the PDF files with Everyone, the links work like a charm, but that is not OK. Currently I get the Error 403 page, with "You do not have permissions to access this resource or perform this operation," when I try to access the file when it's shared only with the organization. Nothing I have tried seems to get me any further than that. So my question is, is this even possible? For example: a) can I somehow create a JavaScript app that creates a heatmap and links to my files, and that I can upload to arcgis.com so that all files are local and logins are persistent? b) am I missing something easy--maybe a function that's been written for this purpose? c) can I somehow pass the login credentials in with my href request, so that permissions to access that resource can be given? Thoughts? Or should I just tell the boss that for now, it's just going to be a pretty heatmap? 🙂 Thanks for all your help!! Bradley
... View more
06-19-2014
04:32 PM
|
0
|
2
|
679
|
POST
|
@yeoanny I assume since you asked your question over 2 weeks ago, you've either found an answer or moved on. However, this blog post made things clear for me: http://blogs.esri.com/esri/arcgis/2010/01/05/direct-links-to-items/ In short, if you go to the <organization>.maps.arcgis.com/... site, you get the details page, but if you link to the www.arcgisonline.com/sharing/... page, you get the resource. My question, though, is a variation of JohnPower1's question: 1) I cannot make the file public--it is protected information 2) I've determined that I need code to authenticate the user requesting the file 3) I am currently unable to piece together the different examples and figure out how to do this from within my remote app (which references a map, and hopefully by the end of this process, other files hosted on uplan.maps.arcgis.com). How do I attach authentication information obtained via IdentityManager--which successfully opens the correct, secured map--to a request to open a file (in this case a .pdf)? That's my question. 🙂 Any help would be appreciated. Thanks!!
... View more
06-18-2014
12:20 PM
|
0
|
3
|
1845
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|