POST
|
@NicolasGIS as you noted, there isn't a 1:1 relationship between the AMD CDN and a local build of the "@arcgis/core" ES modules. Those use two different module systems, so comparing them side-by-side will always result in different performance profiles.
In reviewing the jsapi-custom-worker sample, the network requests and overall performance appear to be working as-designed for "@arcgis/core". I tested the sample locally on my laptop using 4.31, and I didn't see any http request browser stalls. There's definitely a pause when the spatial-join.worker runs, but that's also expected. As I mentioned above, you'll need to use a tool such as Charles debugging proxy to help distinguish between actual http requests and requests are cached by the browser. The chrome developer console tools aren't always telling the full story.
Some things you can do on your end to ensure the best performance when building the SDK locally:
Host your local build on a CDN
If you are hosting the build on your own web server:
Make sure your web server is using HTTP/2
If using HTTP/1 set the “Keep-Alive” header
... View more
12-09-2024
05:22 PM
|
0
|
0
|
112
|
POST
|
@SandroDevos in tsconfig.json, try setting skipLibCheck to true.
... View more
12-03-2024
12:45 PM
|
3
|
0
|
1351
|
POST
|
@NicolasGIS please provide a minimal reproducible app so that we can analyze the issue. Here are the guidelines: https://developers.arcgis.com/javascript/latest/troubleshooting/#minimal-reproducible-application.
... View more
12-03-2024
11:55 AM
|
0
|
0
|
568
|
POST
|
Thanks for letting us know @SandroDevos. We've reproduced the issue and are looking into it.
... View more
12-03-2024
09:56 AM
|
1
|
1
|
1361
|
POST
|
@Guy_srb make sure you have copied the assets from the currently installed version of arcgis/core.
The doc provides an example: https://developers.arcgis.com/javascript/latest/get-started-npm/#local-assets
... View more
11-20-2024
08:23 AM
|
0
|
0
|
275
|
POST
|
@NicolasGIS my recommendation is to open a tech support ticket. That's typically the best route when you have detailed performance concerns.
Many (most?) of the cache hits that appear to be duplicates are likely related to the APIs web-workers working in parallel. Also, the browser, itself, is making parallel http requests. Oftentimes, what may seem to be sequential activity isn't necessarily so, and you have to look carefully at the network "Timing" section of the Chrome dev tools, or use a more advanced tool like Charles Debugging Proxy. Initial load time is a multi-factorial issue that includes not just the API modules, but also how the app is constructed, the data, the number and types of layers, the type of queries, how the layers are constructed, etc. I hope that helps.
... View more
11-13-2024
09:59 AM
|
0
|
0
|
634
|
POST
|
In case it helps with troubleshooting, the SDK's locate widget uses the native Geolocation API under the hood. So, if you can build a simple app for testing with just the Geolocation API, that functionality would be similar to the widget's.
... View more
11-06-2024
10:14 AM
|
0
|
0
|
1090
|
POST
|
@AlagappanA please provide a minimum reproducible app, here are the instructions: https://developers.arcgis.com/javascript/latest/troubleshooting/#minimal-reproducible-application. The Angular sample is a great starting place: https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli.
... View more
10-15-2024
04:22 PM
|
0
|
0
|
372
|
POST
|
@swuell it sounds like you might be looking for the API's projection engine: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#project. This functionality can be run on the client, so no need for a server round-trip.
... View more
10-10-2024
11:21 AM
|
0
|
1
|
442
|
POST
|
Hi @aerhart, the continuous scrolling is likely because you are missing the right CSS. We have an open issue to update the doc to include the CSS. Here's a working example, try running this: https://github.com/Esri/jsapi-resources/tree/main/component-samples/map-components/samples/react.
And here's the sample's CSS:
@import 'https://js.arcgis.com/4.30/@arcgis/core/assets/esri/themes/dark/main.css';
#root, html, body, arcgis-map { height: 100vh; width: 100vw; margin: 0; padding: 0; }
... View more
10-10-2024
09:47 AM
|
0
|
1
|
758
|
POST
|
Hi @ForrestLin, we deprecated the pattern of extending the viewModel for widgets. We now recommend using the JS framework's component capabilities. We don't have an Angular example, but here a React example: https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-custom-ui.
Reference: https://developers.arcgis.com/javascript/latest/custom-ui/#custom-framework-components
... View more
10-09-2024
11:30 AM
|
0
|
1
|
473
|
POST
|
We recognize that WebGL context lost warnings can be frustrating. Here's some clarification on how WebGL contexts work within the ArcGIS Maps SDK for JavaScript. Hopefully this information helps you with reducing how often they occur.
Each MapView or SceneView uses one WebGL2 context. Having too many Views in a browser session is one of the most common causes of these warnings. Generally speaking, adding/removing layers and widgets does not increase or decrease the number of contexts used by the Maps SDK. However, it does affect the amount of resources your app uses, such as memory. The amount of available memory is one of the factors browsers use in determining the maximum WebGL context limit.
Please refer to the FAQ on this topic, it contains additional information: https://developers.arcgis.com/javascript/latest/faq/#is-there-a-limit-to-the-number-of-map-and-scene-views-a-user-can-open.
... View more
09-25-2024
10:59 AM
|
0
|
0
|
786
|
POST
|
Here's the KB article with info on the Chromium issue and the versions affected: https://support.esri.com/en-us/knowledge-base/defective-chromium-128-update-and-arcgis-maps-sdk-for-j-000033499
... View more
09-17-2024
08:33 AM
|
0
|
0
|
785
|
POST
|
Hi @RyanMoser, disregard, it sounds like you did contact support.
... View more
09-17-2024
07:45 AM
|
0
|
1
|
797
|
POST
|
The project didn't work, it has configuration issues in Stackblitz and when I tried to run it locally. Also, make sure to include reference to the SDK's CSS. My recommendation is to try adding your functionality to this Angular sample: https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli
... View more
09-13-2024
02:46 PM
|
0
|
0
|
564
|
Title | Kudos | Posted |
---|---|---|
1 | 04-23-2025 06:56 AM | |
1 | 04-23-2025 07:09 AM | |
1 | 04-08-2025 09:05 AM | |
1 | 04-07-2025 03:15 PM | |
1 | 02-28-2025 09:24 AM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|