POST
|
Hi Matt, I'm having the exact same issue. Could you provide a little more detail to your steps 1 and 2 above? How exactly do you clone an environment and how do you install that environment onto the Linux server? Thanks so much. And I totally agree, this seems like a complete oversight. How can we run Python3 and ArcGIS Server on Linux if we can't add python modules? Nils
... View more
09-05-2023
09:56 AM
|
0
|
1
|
694
|
POST
|
I'm just testing that now. It definitely cuts down on the number of requests and the issue with the issue with the listItemCreatedFunction. I think it is a big improvement. I'm still trouble shooting some issues with the layer list and performance but I think this helps.
... View more
07-15-2022
09:43 AM
|
0
|
0
|
273
|
BLOG
|
Any update on porting the 3.x MapImageLayer to 4.x? The functionality matrix has said it is coming soon for years.
... View more
04-13-2022
09:46 AM
|
0
|
0
|
467
|
POST
|
Any update on this? I have the same exact errors coming from the Tiger/web transportation layers: https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Transportation/MapServer The service has labels on the layers but my JavaScript 4.20.2 application does not have labels turned on for the layer. The layers and application seem to be working without issue. But the errors in the console do not look good. Any help would be appreciated. Thanks very much.
... View more
02-23-2022
12:15 PM
|
0
|
0
|
664
|
POST
|
I found out you can drill down through the container to get to the cancel button and then call the click method. You have to set a handler on the dialog-create event and then when the dialog is ready get a reference to the button and call the click event. esriId.on('dialog-create', () => {
esriId.dialog.when(() => {
const dialogHtml: any = esriId.dialog.container;
const cancelBtn: HTMLInputElement = dialogHtml.childNodes[0].childNodes[2].childNodes[0].childNodes[3].childNodes[1];
cancelBtn.click();
});
});
... View more
02-18-2022
04:05 PM
|
1
|
1
|
743
|
POST
|
I have an application using 4.22 of the JavaScript API. It references several layers from different sources. When one of these layers from an outside ArcGIS Online Organization changes or is unavailable, for whatever reason, the API presents the user with the ArcGIS Online sign in dialog. It must assume the layer it is looking for is secured and maybe it can reach it by signing in. This makes no sense to my users and I would like to disable the dialog or cancel the dialog when it opens. That way the layer will fail and notify the user it is not available. However, I can't find a way in the Identity Manager to do this. The closest I can find is the Identity Manager has a dialog-create event. I can create a handler that catches the on dialog create event. But the only thing I can do at that point is set the visibility of the dialog to false. That doesn't actually cancel it. The layer is still waiting for input from the user and never fails. Is there another way to disable, cancel, or suppress the dialog?
... View more
02-11-2022
10:48 AM
|
0
|
2
|
784
|
POST
|
Hi, I actually have the exact same problem. I'm not sure this solution is actually fixing the problem or just masking it. I have a resource proxy that handles storing the username/password and getting tokens for several of our layers because they come from different sources. My problem is I have a few layers that come from an ArcGIS Online subscription. The author has been changing the name of the service a few times. In our application the JavaScript API can't find it and apparently thinks the layer might be secured so it opens the password dialog. The solution listed above only closes the dialog it doesn't actually cancel it. So my layer and view is still waiting for input and the updating property never gets set to false. I want to close the dialog through the cancel button so that the layer's create-layer-error event get's called and the user is notified there is a problem with the layer. Is there a way to do this? I'm not sure why something like this would be unsupported. It seems like a reasonable choice for the developer to present the user with the dialog or not. Thanks very much.
... View more
02-10-2022
12:16 PM
|
0
|
0
|
547
|
POST
|
It appears that this is "fixed" in v 4.20. However, they broke the sketch widget in the process. Now you can pan when you drag but it won't freehand sketch anymore. It's completely broken. Unless there is some trick I don't know about. Holding down the C button has no effect. Esri, is this a known bug?
... View more
07-22-2021
07:38 AM
|
0
|
0
|
809
|
POST
|
I've updated the sample above to modify the templates property of the layer. When it loads I change the drawingTool of the template to 'rectangle'. This also has no effect. When I add a feature it still only gives me a polygon tool. Is this a bug? Why have a templates and drawingTool property if it doesn't have an effect? Or am I not using it correctly?
... View more
07-21-2021
07:32 AM
|
1
|
0
|
457
|
POST
|
I've created a simple app with the v4 editor widget (https://codepen.io/nbabel/pen/WNjEOzO). It uses a hosted feature layer to edit. The hosted feature layer has a feature template saved with the service. The service has the feature template Drawing Tool set to esriFeatureEditToolRectangle. However, the editor widget ignores that and only allows me to use the regular polygon tool. How do you get the editor widget to recognize the fetaure template draw tool? Does it recognize the draw tool? Is there another way to use the rectangle tool to create a feature with the editor widget? I've looked into the Feature Template documentation. But I'm lost as to how to incorporate that with the editor widget and the existing layer. It shouldn't be this hard to just set a rectangle tool for your draw tool.
... View more
07-20-2021
08:08 AM
|
1
|
2
|
536
|
POST
|
I have a hosted feature layer I have created (https://ncbabel.maps.arcgis.com/home/item.html?id=83667d37ec704f08b0bc2a29fa878394). I have turned editing on for the layer. I've gone to the classic map viewer and under manage edit templates I have changed the draw tool to a rectangle. Now when I edit the polygon in the classic map viewer it uses the rectangle tool. If I open the feature layer in the new map viewer and edit the polygon it uses the regular polygon tool not the rectangle tool. If I check the layer feature service rest api it shows that it has a feature template and the draw tool is set to: esriFeatureEditToolRectangle. Are editing templates used in the new map viewer (and therefore v4 of the javascript API)? It appears that they are not. Am I missing something? How do you use editing templates in the new map viewer and v4 of the javascript API.
... View more
07-20-2021
07:43 AM
|
0
|
1
|
632
|
POST
|
Hello, did you ever find a solution for this? I'm trying to do the exact same thing. I thought the edit tool would default to whichever tool was set in the editor template. That does not appear to be the case. I'm not sure what the point of the default create tool is in the template. Shouldn't be this hard but I can't seem to find a solution. Thanks very much.
... View more
07-19-2021
01:52 PM
|
0
|
0
|
356
|
POST
|
I reported this issue to Esri and they created a bug for it. BUG-000141284. Hopefully it gets resolved in the next release.
... View more
07-14-2021
06:18 AM
|
0
|
0
|
1000
|
POST
|
@HeatherGonzago in v3 of the api the FeatureLayer had a before-apply-edits event. I have used that before to populate default values into fields. In v4 the FeatureLayer does not have this event. Setting up defaults in the service is not really a great solution if you want to get those defaults from your application. I'm using v4.19 now. Did the possible enhancement you mentioned above get implemented yet? It seems like this should be something pretty simple to do.
... View more
06-10-2021
02:48 PM
|
1
|
0
|
2622
|
Title | Kudos | Posted |
---|---|---|
1 | 02-18-2022 04:05 PM | |
1 | 07-21-2021 07:32 AM | |
1 | 07-20-2021 08:08 AM | |
1 | 06-10-2021 02:48 PM | |
1 | 11-05-2020 07:14 AM |
Online Status |
Offline
|
Date Last Visited |
12-13-2023
03:57 PM
|