POST
|
Hello, I'm trying to get the length of a polyline in webmercator (102100). I am using geodesicLength but the result is slighlty off compared to the real distance (I'm getting 7099m instead of 7114m in that case but it happens pretty much on all polylines). Other tools on the web returns me the correct length, as does arcmap. I'm wondering if the tool runs some sort of simplification before calculating the length? I have tried to use the geometryService.length but that function crashes all the time, I'm assuming because my polyline has got too many vertices ? Thanks
... View more
08-11-2021
03:11 AM
|
0
|
3
|
708
|
POST
|
Hello, We are having issues when using the Editor widget on some of our Feature Layers. It happens when we try and add a new polygon. It then crashes the widget and throws an error, so we're unable to add any features at all. The error we're getting is the following it was working ok in 4.18 edit: it seems it's affecting only layers that have Z values enabled. if that helps
... View more
07-28-2021
01:56 AM
|
0
|
12
|
1746
|
POST
|
Hello, There seems to be at least a typing error in the geoprocessor rest. When I submit an async geoprocess like below: const jobSubmitted = await submitJob(url, params); If I want to fetch I need to use fetchResultData. fetchResultData(jobId: string, resultName: string, requestOptions?: any, Promise<supportParameterValue>; Then if I do const output = await jobSubmitted.fetchResultData(jobId, resultName); It returns an error. In the network tab you can see it queries the wrong URL : https://{url}/jobs/j28ccad931fd54ea4aa35bb2a5d525bc8/results/j28ccad931fd54ea4aa35bb2a5d525bc8?f=json It actually uses the jobId twice. For the moment my workaround is to ignore the typing, and only pass the resultName const output = await (jobSubmitted as any).fetchResultData(resultName); Which calls the correct endpoint..
... View more
07-19-2021
11:35 AM
|
0
|
1
|
543
|
POST
|
Hi, Since 4.20 we are having issues printing with our own Print Service, via the Print widget. We're getting an error when hovering over the exported files section "An error occured while exporting the webmap.". I have tested the widget with the ESRI Print Service and it does work. The only difference I can see, is our service is asynchronous. I assume this is linked to the changes related to the rest modules? edit: More info stack error: "TypeError: Cannot destructure property 'returnFeatureCollection' of 's' as it is null. at p.fetchResultData (http://localhost:8080/js/33.js:211:1559) at o (http://localhost:8080/js/46.js:39:926) at async print (http://localhost:8080/js/84.js:156:1933)" ps: we changed our service to synchronous, and it works again. (but we'd like a fix for the async method...)
... View more
07-07-2021
05:35 AM
|
1
|
6
|
1411
|
POST
|
Hi, Thanks for your response. Unfortunately all of our maps rely on wmts layer so they all look pretty horrendous at the moment. Is there not a way this could be fixed in the current API? Otherwise I guess we'll need to skip a version. Thank you
... View more
11-05-2020
05:30 AM
|
0
|
0
|
1126
|
POST
|
The maxRecordCountFactor property (Query | ArcGIS API for JavaScript 4.17 ) is not working for Map Service queries. It's not clear from the API documentation whether it should or not. If not, what would be a way to bypass the maxRecordCount from the service, only when doing a query to get the attributes? Using start+num and looping until we reach the recordCount of the layer? Any ways to do that in a single query? Thanks
... View more
10-15-2020
08:38 AM
|
0
|
0
|
462
|
POST
|
The service is unfortunately not public. We'll try to find an example online and I'll make a codepen.
... View more
09-24-2020
12:34 AM
|
1
|
0
|
518
|
POST
|
There's an issue with the updateConversions method CoordinateConversionViewModel | ArcGIS API for JavaScript 4.16 . Both in the documentation and in the types (typescript). It's supposed to be updateConversions(location, conversions) , but it always comes back with an error saying the location is not a proper Point. In the actual code it seems the properties are reversed: it's actually looking for updateConversions(conversions, location) in typescript the workaround I'm applying is: Then it works fine.
... View more
09-24-2020
12:26 AM
|
0
|
1
|
3402
|
POST
|
Hi, We noticed a behaviour/bug in MapImageLayer Sublayer rendering. We have some polygons with relatively complex symbology: When we set an opacity to that layer, and at the same have a popupTemplate setup, then when we click on the map, it "downgrades" the symbology to a simple fill (and it stays downgraded until you reload the app). Simple code taken out of the API sandbox: If I don't set any opacity, then it works fine. If I don't set any popup it works fine too, although It seems to me the issue is linked to the opacity (?).
... View more
09-04-2020
01:09 AM
|
0
|
2
|
596
|
POST
|
Hi, I am trying to show attachments in a popup (mapimagelayer) using that piece of code, and it's not working (I can see the attachment in the rest end point (pdf)): popupTemplate: { outFields: ['*'], title:"test", content: [{type: "attachments"}] }
... View more
02-14-2020
03:06 AM
|
0
|
1
|
907
|
POST
|
Great. I'll have a play with the next release. Thanks
... View more
01-15-2020
08:51 AM
|
0
|
0
|
824
|
POST
|
It turns out we just figured it out. It was linked to the way we used to create server connection file, and in particular the way we specified the server URL. We were typically using either: http://gisserver.domain.com:6080/arcgis/admin or https://webadaptorhost.domain.com/webadaptorname/rest/services We had to use https://webadaptorhost.domain.com/webadaptorname/services instead. This was a simple fix, which took us 2 years to figure out.
... View more
01-15-2020
03:56 AM
|
2
|
0
|
462
|
POST
|
I found the "problem". When coding your domains, you need to specify the type ("coded-value"), otherwise the _isDomainCompatible() function in the VM won't work. I guess I somehow believed it would "autocast". domain:{ codedValues: [{code:'Yes',name:'Yes'},{code:'No',name:'No'}], type:"coded-value" } I modified the pen above.
... View more
01-15-2020
03:04 AM
|
0
|
0
|
435
|
POST
|
Hi, The workaround seems to work for me too. I'll mark the answer as correct. Using react components to display popups I'm now doing: template.content = () => { const div = document.createElement('div'); ReactDOM.render(<PopupContent />, div); return div; }
... View more
01-06-2020
02:09 AM
|
0
|
0
|
5902
|
POST
|
Hi, It seems I am now unable to set a class/id etc to a div using the content properties of the popuptemplate. It used to work fine in the 4.13. It's pretty annoying as it means we can't style our popups like we used to and have to keep using 4.13. Is there a workaround, or a reason why it changed? Below is a Pen built using one of the API sample. As you can see the class property doesn't come through. If you switch back to 4.13, then it does. https://codepen.io/mtrsklnkvMM/pen/rNaGEYo
... View more
01-02-2020
02:01 AM
|
2
|
11
|
7261
|
Title | Kudos | Posted |
---|---|---|
1 | 11-02-2022 08:39 AM | |
1 | 06-21-2022 02:29 AM | |
1 | 01-12-2022 03:09 AM | |
1 | 07-07-2021 05:35 AM | |
1 | 10-18-2018 07:08 AM |
Online Status |
Offline
|
Date Last Visited |
02-07-2024
05:26 PM
|