|
POST
|
Hi @lawsonkendall can you provide a github repo example? I'm not 100% certain I understand the architecture. On the surface the implementation sounds like its unsupported because its intermixing Angular component life-cycle with the ArcGIS widget life-cycle. > If I can't connect an existing Directions widget (containing already-retrieved route info) to a new view div This isn't possible. All of the APIs out-of-the-box widgets have private undocumented dependencies on the MapView (or SceneView), so a widget can't be disconnected from a View and then reattached. I'm tagging @Noah-Sager for any input he may have related to caching route info and programmatic access.
... View more
03-09-2022
08:08 AM
|
1
|
1
|
2082
|
|
POST
|
Sure @sandrooco I can take a look, it'll probably be next week. Do you have a requirement to keep the assets local? By default they'll pull from CDN, reference: https://developers.arcgis.com/javascript/latest/es-modules/#working-with-assets.
... View more
02-25-2022
09:35 AM
|
0
|
1
|
3557
|
|
POST
|
Hi@sandrooco let us know what version of Angular? Here's an example using Angular 11 with a custom builder and the ArcGIS webpack plugin: https://github.com/andygup/angular-cli-esri-map/tree/arcgis-webpack-angular . The repo is archived and it uses the AMD modules, but hopefully you can reuse some of the builder patterns to get the plugin working.
... View more
02-24-2022
08:05 AM
|
0
|
3
|
3583
|
|
POST
|
Hi @AnantSharma just an additional note, our native Runtime SDKs support full offline workflows,. you can find documentation here: https://developers.arcgis.com/documentation/. With regards to the second scenario, there isn't much documentation for the ArcGIS API for JavaScript specifically, it involves an Enterprise architecture installed on premise. If you need more information on that, I recommend contacting your Esri Sales Rep to make sure you have all the Enterprise pieces in place for your use cases and requirements.
... View more
02-23-2022
11:59 AM
|
0
|
0
|
2872
|
|
POST
|
Hi @NicolasGIS correct, the View files were deprecated at 4.21. We certainly understand the benefits they provided. One of the challenges was the View files rely on internal/private methods. Oftentimes, we unintentionally broke custom widgets when doing internal updates, so that ended up being a brittle approach that was not scalable.
... View more
02-22-2022
08:36 AM
|
0
|
0
|
966
|
|
POST
|
Hi @AnantSharma By offline do you mean the app is designed to run on a device with no access to internet? Or do you mean the app is running on a Local Area Network (LAN) that is sand-boxed off from the public internet? Those are two different architectures. We don't support the first scenario.
... View more
02-22-2022
07:47 AM
|
0
|
0
|
2892
|
|
POST
|
@DanielFrunzaI updated all the dependencies including an update to use jest-preset-angular/presets/defaults-esm: https://thymikee.github.io/jest-preset-angular/docs/guides/esm-support. That got me beyond the crypto error, but then I ran into a tslib bug that's most likely related to this long outstanding issue that seems to have some new momentum towards a fix: https://github.com/microsoft/tslib/pull/171 This is the error that I'm now seeing: SyntaxError: The requested module '../chunks/tslib.es6.js' does not provide an export named '_' I'll take a look again as time permits. In the meantime if you are able to chip away at this, here are some additional resources: * Some basic guidelines for using jest with esm: https://gist.github.com/rstacruz/511f43265de4939f6ca729a3df7b001c * A working example of using the jest esm presets for Angular (no ArcGIS) https://github.com/thymikee/jest-preset-angular/tree/main/examples/example-app-v13.
... View more
02-10-2022
10:43 AM
|
0
|
0
|
2833
|
|
POST
|
Oh interesting. Thanks @DanielFrunza I'll take a look.
... View more
02-08-2022
10:57 AM
|
0
|
1
|
2840
|
|
POST
|
Gotcha, thanks. It's not clear what is causing this issue, there are a ton of usages of crypto within Angular, when I searched for it in node_modules I got 690 results in 198 files including usage in TypeScript and Stencil. I tried some quick internet searches and can see this isn't a unique problem. What's interesting is crypto didn't get installed on my machine when I installed the sample project. Maybe Jest or Nx triggers something that requires it.
... View more
02-02-2022
05:50 PM
|
0
|
4
|
3703
|
|
POST
|
Hi @corndog see my response on the other post: https://community.esri.com/t5/arcgis-api-for-javascript-questions/esm-modules-broken-error-resolving-module/m-p/1140083/highlight/true#M76240.
... View more
02-02-2022
01:26 PM
|
1
|
0
|
1436
|
|
POST
|
Hi @corndog any chance you able to open a tech support ticket? They might be able to help get you pointed in the right direction. I'm curious why you are looking to migrate to ESM? AMD is a perfectly acceptable approach. We mention that in the documentation here: https://developers.arcgis.com/javascript/latest/tooling-intro/#should-i-migrate-to-es-modules. If you use the AMD CDN without a JavaScript framework or local build tools, then there’s no need to migrate. The AMD modules will be available for the foreseeable future, and the AMD and ES modules have the same API capabilities.. Lastly, we have an ESM CDN that can be used for prototyping and testing-only. That might be a good place to start since you don't need node or npm. Here's a link to that sample application: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-esm-cdn and the source code is in that directory: https://github.com/Esri/jsapi-resources/blob/master/esm-samples/jsapi-esm-cdn/esm-cdn.html.
... View more
02-02-2022
01:21 PM
|
0
|
2
|
11774
|
|
POST
|
@corndogdid you look at any of the samples we have here: https://github.com/Esri/jsapi-resources/tree/master/esm-samples? I'm actually in the process of updating the guide topic page, it needs to mention that you are required to have local build tools in order to use @arcgis/core modules. I also noticed you are importing both the AMD CDN via a script tag, and @arcgis/core, that will cause API conflicts.
... View more
02-01-2022
04:02 PM
|
0
|
3
|
11835
|
|
POST
|
@DanielFrunza Try removing the following line from \node_modules\@arcgis\core\package.json and then try again: "crypto": false,
... View more
02-01-2022
03:47 PM
|
0
|
6
|
3729
|
|
POST
|
@DanielFrunzaare you using React or Angular? Crypto error sounds like React, and if that's the case here's a link to a repo that was mentioned above that might help you out: https://github.com/defiantgoat/esri-react-typescript
... View more
02-01-2022
09:05 AM
|
0
|
9
|
3739
|
|
POST
|
Hi @mohammed_raufshaikh, I'm aware of the formulas to do it but haven't researched it recently, you might marked this post as answered and create a new post about curved lines to get better visibility from the community. Here's a simple example of how to draw a curved line between two points: https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-draw-a-curved-line-between-two-points/td-p/253177
... View more
01-27-2022
09:03 AM
|
0
|
1
|
4601
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-10-2026 08:29 AM | |
| 1 | 03-26-2026 03:12 PM | |
| 2 | 02-21-2026 10:23 AM | |
| 2 | 08-01-2025 06:20 AM | |
| 1 | 05-27-2025 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|