POST
|
What is the best way to lazy load a feature layer for a map? In my application, I have a map and handful of layers, some are turned off by default on launch. These feature service layers that are off by default I would like to delay loading until the user clicks that layer's on/off check box. Is this possible within the ArcGIS Online JS API? The solution I've brainstormed so far is to set the layer's url to an empty feature service when the layer is first instantiated. Inside the checkBox.on("change") function I would change the url to the correct feature service url, refresh() the layer, then proceed with the rest of the code that handles the layer rendering and tables. I don't want to reinvent the wheel when possible, so I'm looking for a documented or better way of handling this while I roll my own solution.
... View more
10-15-2017
02:17 PM
|
0
|
9
|
3128
|
POST
|
Thanks for the reply, this is an interesting implementation of a testLayer() function. I'm giving this a try in my application right now!
... View more
09-11-2017
10:01 AM
|
0
|
1
|
1410
|
POST
|
Thanks for the helpful reply - I've implemented something similar and this appears to be what I need.
... View more
09-11-2017
10:00 AM
|
0
|
0
|
1410
|
POST
|
The web app, web map (and all the feature layers I created and included in the map) are set to share publicly.
... View more
09-10-2017
04:17 PM
|
0
|
0
|
1403
|
POST
|
Before I load and begin querying all the feature service layers in my map that I have created with the ArcGIS JavaScript API, I would like to first verify that the service is responding. What I'm trying to accomplish is to check if any urls are not responding, and if so, skip those feature services and allow my application to keep loading without them. What is the best/recommended way to do this?
... View more
09-08-2017
09:44 PM
|
1
|
6
|
2595
|
POST
|
Unfortunately I do not have access to Esri tech support as this is for a personal project using the free version of AGOL. I'm stumped by this because it worked fine for months up until Wednesday, then all of the sudden the errors started appearing. I had made no changes to the web app or map recently.
... View more
09-08-2017
09:52 AM
|
0
|
1
|
474
|
POST
|
I'm currently attempting to embed a web app into my page. The web app is hosted in ArcGIS Online (not my organization's portal).
... View more
09-08-2017
07:23 AM
|
0
|
3
|
1505
|
POST
|
I did. Maybe I'm misinterpreting things, but isn't the X-Frame-Options header something that is set on Esri's side? I'm not hosting the web map, Esri is - I'm just using the html that is generated when I click "share" on my web map. I don't see any mention of X-Frame-Options headers in this help page: Embed maps, apps, and groups—ArcGIS Online Help
... View more
09-08-2017
07:16 AM
|
0
|
5
|
1505
|
POST
|
I'm also having this issue. All of the sudden today Chrome and Firefox and IE will not display my embedded web app on a web page, giving me the "Refused to display 'https://www.arcgis.com/home/signin.html?returnUrl=http%3A//www.arcgis.com/apps/View/index.html%3Fappid%...' in a frame because it set 'X-Frame-Options' to 'deny'."
... View more
09-07-2017
04:47 PM
|
0
|
7
|
1505
|
POST
|
Today I've started getting this error message when attempting to view my we bpage which contains an embedded AGOL web app in an iframe: <iframe style="height: 90vh" src='http://www.arcgis.com/apps/View/index.html?appid=...' frameborder='0' scrolling='no'></iframe> Refused to display 'https://www.arcgis.com/home/signin.html?returnUrl=http%3A//www.arcgis.com/apps/View/index.html%3Fappid%...' in a frame because it set 'X-Frame-Options' to 'deny'.
GET https://www.arcgis.com/home/signin.html?returnUrl=http%3A//www.arcgis.com/apps/View/index.html%3Fappid%... net::ERR_BLOCKED_BY_RESPONSE I'm just wondering if there's anything I need to configure in the map or app itself in order to ensure it displays on my page, regardless of whether the client is logged into ArcGIS Online in their browser or not. Or is it not possible to disaply a web map/app in an iframe if the client is not logged into AGOL? edit: I'm marking this as "assumed answered" as the cause of the issue was determined to be a layer in the map did not have the proper sharing settings. I set the layer to share with the public, and the embedded app displayed correctly in my web page.
... View more
09-07-2017
02:52 PM
|
1
|
2
|
3482
|
POST
|
I need to insert a new row into a featureless table in a file geodatabase, but I can't seem to find anything the ArcGIS Pro SDK community samples or pro snippets. Does anybody know how this can be done and/or can point me in the right direction?
... View more
09-05-2017
03:08 PM
|
0
|
1
|
3548
|
POST
|
I've noticed that sometimes I get a System.ArgumentException when attempting to add a layer at this line: LayerFactory.Instance.CreateLayer(new Uri(uri), map) var 'uri' is a string containing the full path of a .lyrx file (ex: "D:\Data\my_layer.lyrx"). If the path is on a shared network drive, some of the time I get the exception. I'm also unable to navigate to that folder in the ArcGIS Pro Catalog. Sometime it does work, however but it seems random. There is no loss of connection to the folder in Windows Explorer when this error occurs. Is it possible to force a refresh or reconnect to the network folder before attempting to access files? Has anyone else experienced a similar issue?
... View more
08-31-2017
11:30 AM
|
0
|
0
|
1634
|
POST
|
Several times per day I am receiving this error message, I'm not sure what's happening: Here is the full text of the problem details: Problem signature:
Problem Event Name: APPCRASH
Application Name: ArcGISIndexingServer.exe
Application Version: 12.0.0.8933
Application Timestamp: 59448914
Fault Module Name: ucrtbase.DLL
Fault Module Version: 10.0.10586.15
Fault Module Timestamp: 564ea777
Exception Code: 40000015
Exception Offset: 000000000006990f
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: f1ed
Additional Information 2: f1ed9519d32e1ab1ad9c25d3f029ca3c
Additional Information 3: 1606
Additional Information 4: 1606ec217f97723d64bd81b579756a87
... View more
08-31-2017
09:10 AM
|
0
|
7
|
4641
|
POST
|
Thanks for this! Do you happen to remember which community sample demonstrates this? I must just not be seeing it...
... View more
08-29-2017
01:45 PM
|
0
|
1
|
1786
|
POST
|
I'm having a hard time figuring out how to get the currently selected item in a ComboBox. I couldn't find anything demonstrating this in the ArcGIS Pro SDK Community Samples, but I may have missed or overlooked this. The RibbonControls solution demonstrates the combo box and button click, but I can't figure out how to get the combo box selection when the button is clicked. Can anyone point me in the right direction?
... View more
08-29-2017
11:50 AM
|
0
|
3
|
3293
|
Title | Kudos | Posted |
---|---|---|
1 | 02-21-2023 12:26 PM | |
1 | 11-04-2020 02:31 PM | |
5 | 10-11-2022 03:59 PM | |
1 | 10-08-2019 04:48 PM | |
1 | 12-03-2020 02:50 PM |
Online Status |
Offline
|
Date Last Visited |
01-15-2024
03:01 PM
|