|
POST
|
Excellent, glad we got it figured out. Feel free to mark this question as answered, even if you provided the answer yourself.
... View more
09-13-2020
02:16 PM
|
1
|
0
|
4046
|
|
POST
|
Couple things come to mind: 1) Are you using a SimpleFillSymbol for the polyline? That symbol is for polygons. SimpleFillSymbol | ArcGIS API for JavaScript 4.16 2) The style is set to "null" on line 274, which is not a valid value. SimpleFillSymbol | ArcGIS API for JavaScript 4.16 3) Looks like you're using version 4.14. The current version is 4.16. Can you also test with 4.16?
... View more
09-11-2020
01:00 PM
|
2
|
2
|
4046
|
|
POST
|
Update: the fix for this issue will make it in for the next release, version 4.17.
... View more
09-06-2020
01:43 PM
|
1
|
4
|
9143
|
|
POST
|
Update: we are getting closer to a solution for this, where the type=button as discussed. This should make it in for the next release (early October), but I will update this thread when a final decision is made.
... View more
09-03-2020
02:30 PM
|
2
|
5
|
9143
|
|
POST
|
Hi Gregory, sorry, but I cannot reproduce this issue. If I'm understanding correctly, here are my repro steps: 1) app Measurement in 2D | Sample | ArcGIS API for JavaScript 4.16 2) tool - AreaMeasurement2D 3) Click once on the map, then double click on the same spot without moving the cursor. One option would be to use a try/catch in the viewmodel: AreaMeasurement2DViewModel | ArcGIS API for JavaScript 4.16
... View more
09-02-2020
12:22 PM
|
1
|
0
|
967
|
|
POST
|
Yeah, a working simple sample will help to figure out what's occurring. My hunch has to do with how the features are getting added to the map.
... View more
08-26-2020
03:39 PM
|
1
|
1
|
4046
|
|
POST
|
Can you share a simple sample showing this in action? What is the code used to create the polylines? What is the behavior if you just use the print widget? What is the version of the JS API?
... View more
08-26-2020
02:42 PM
|
0
|
3
|
4046
|
|
POST
|
It looks like the order is incorrect in this line: import MyWidget = require("my-widget/MyWidget"); Should be something like this: import MyWidget = require("MyWidget/my-widget"); Here are some examples about this workflow from our samples page: Create a custom widget | ArcGIS API for JavaScript 4.16 Custom Recenter Widget | ArcGIS API for JavaScript 4.16
... View more
08-24-2020
10:27 AM
|
0
|
1
|
10971
|
|
POST
|
I think this is the documentation you are looking for: RouteParameters | ArcGIS API for JavaScript 4.16 Note that a valid travelMode property is will be dependent on the Network Analyst server to which the request is sent.
... View more
08-24-2020
10:23 AM
|
0
|
0
|
1006
|
|
POST
|
Nice, I didn't even think of that. Thanks for posting your solution here, and feel free to mark this question as answered, even if you provided the answer yourself.
... View more
08-19-2020
07:53 AM
|
1
|
0
|
2050
|
|
POST
|
Hi Aditya, sorry to hear about this. If you're using an Esri hosted print service, there can be issues when there are a lot of requests/network traffic at that time. The best bet is to consume your own hosted print service. I would also recommend upgrading to using the 4x version of the API. Couple questions: 1) Is the print service locally hosted, or is it the sampleServer6 print service, or the ArcGIS Online utility print service? 2) Does the behavior change when the app is hosted on a fully qualified domain, instead of from localhost? 3) Have you tried the Print widget with the 4.16 version of the ArcGIS API for JavaScript? ArcGIS API for JavaScript Sandbox 4) If you remove the proxy, does the issue persist?
... View more
08-18-2020
10:17 AM
|
0
|
2
|
2050
|
|
POST
|
Correct, this is still a known limitation of 3D SceneViews SceneView | ArcGIS API for JavaScript 4.16
... View more
08-18-2020
10:02 AM
|
0
|
0
|
1672
|
|
POST
|
Thanks for the additional information, Travis. I think it's because button elements have a default behavior of "submit" when wrapped in a form, based on: https://www.w3.org/TR/2011/WD-html5-20110525/the-button-element.html#the-button-element We are investigating this now from the API perspective. In the meantime, you could use evt.preventDefault() in the onsubmit callback if the element that invoked the submission was not the expected one. Psuedo-code: document.getElementById("myform").onsubmit = function (evt) { if (myRealSubmitButton !== evt.submitter) { // submit likely called via sketch UI button click evt.preventDefault(); } };
... View more
08-11-2020
09:04 AM
|
2
|
7
|
9143
|
|
POST
|
Hi Kevin MacLeod, my apologies. This did not get implemented in 4.15. We had installed a fix, which I verified was working, but there were other complications, so we had to roll it back (and I forgot to update this thread). We are still working on this, and hope to have it fixed for 4.17 in October.
... View more
08-05-2020
11:48 AM
|
2
|
5
|
5310
|
|
POST
|
I did some googling about cshtml and JavaScript apps. It seems cshtml and html and not compatible. cshtml vs. html | The ASP.NET Forums Tutorial: Call an ASP.NET Core web API with JavaScript | Microsoft Docs We also offer a .NET SDK, which may be more in line with what you are looking for. ArcGIS Runtime SDK for .NET (latest) | ArcGIS for Developers If not, I know we have other developers in this community who use the JS API with .NET applications, so hopefully they can add their experience here as well.
... View more
08-03-2020
11:34 AM
|
0
|
0
|
1359
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 04-14-2026 11:59 AM | |
| 1 | 05-13-2026 10:29 AM | |
| 1 | 04-10-2026 09:11 AM | |
| 1 | 03-24-2026 11:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|