|
POST
|
I don't know of any Angular examples. However, here is a simple codepen that demonstrates the basic concepts behind swapping MapViews: https://codepen.io/andygup/pen/VwYjGRM. You'll need to apply similar concepts in your app.
... View more
08-13-2020
11:49 AM
|
1
|
3
|
4618
|
|
POST
|
Issue opened on github. Cross-reference: https://github.com/Esri/angular-cli-esri-map/issues/74
... View more
08-10-2020
04:35 PM
|
0
|
0
|
1514
|
|
POST
|
Hi Andrew (good name, by the way), as a best practice I recommend creating an Angular service that lets you reuse/recycle MapViews and their associated DOM nodes, and that you also limit the number of MapViews. Each additional MapView initialized within your application will consume more memory up until you hit the browser limit for WebGL contexts (typically 16), or the browser tab might automatically restart because of high-memory usage. There's no guarantee that your approach is actually deleting "all" code references that are internal and external to ArcGIS API for JavaScript modules, and therefore there are things that can't be garbage collected by the browser. This issue isn't related to Angular specifically, it's just how JavaScript works. I'm guessing from your code above there's a really good chance the app is creating what's called detached DOM nodes, which is one type of major memory leak. they can't be garbage collected even if you try to null them out in your code. You can see these detached nodes when you do a JS Heap snapshot and search for the word "detached". Reference: https://developers.google.com/web/tools/chrome-devtools/memory-problems#discover_detached_dom_tree_memory_leaks_with_heap_snapshots
... View more
08-10-2020
11:38 AM
|
1
|
6
|
4618
|
|
POST
|
Hi Ryann, I have a few questions that will help us get to the bottom of this: * What is the last production version of the ArcGIS API for JavaScript that does work in your app? * Does the error occur during the app build or does it occur during a specific UI action? * If the app breaks from some user interface action, can you provide the block of code that is breaking, or do you have a stackblitz version of this? * Can you duplicate this outside of Angular in a stand-alone JS app? * Can you also share your package.json file? FYI, it may be easier to open an issue here and continue the conversation => Issues · Esri/angular-cli-esri-map · GitHub . It also makes it a lot easier for other Angular devs to track and find answers to similar questions.
... View more
07-29-2020
12:12 PM
|
0
|
1
|
1514
|
|
POST
|
Hi Shane, it's a known issue. We'll be looking into this over the next few weeks along with migration to Angular 9, here's the issue to track: Webpack example running tests fails · Issue #49 · Esri/angular-cli-esri-map · GitHub
... View more
02-18-2020
08:39 AM
|
2
|
1
|
2099
|
|
POST
|
If you are concerned about HTTP calls to retrieve modules take a look at using webpack instead of esri-loader. If you can switch over to webpack then all your ArcGIS modules will be in the local bundles. Here's a repo to help get you started in that direction: https://github.com/Esri/angular-cli-esri-map/tree/arcgis-webpack-angular. Unfortunately the spec is broken on that branch, not sure why.
... View more
10-09-2019
11:28 AM
|
2
|
2
|
5725
|
|
POST
|
Sorry ignore the previous jsbin and try this one: https://jsbin.com/xegicih/2/edit?html,output.
... View more
07-26-2019
09:50 AM
|
1
|
1
|
4433
|
|
POST
|
Hi Alan, thanks for the code. That's a bug and I've opened an issue on it. The workaround for 4.12 is to convert to webmercator and then normalize the geometries, for example: FeatureLayer across dateline. Let me know if that doesn't work?
... View more
07-26-2019
08:34 AM
|
0
|
3
|
4433
|
|
POST
|
Also take a look at this JS API 4.12 example that uses geodesicUtils.geodesicDensify() https://codepen.io/andygup/pen/QeyerP.
... View more
07-23-2019
12:13 PM
|
0
|
5
|
4433
|
|
POST
|
Blake, in the latest Android Runtime there is a method you might try: GeoView (ArcGIS Runtime SDK for Android 100.5.0). FYI, I haven't used the method since I haven't been working on Runtime in quite some time so I won't be able to answer any questions about it.
... View more
07-01-2019
08:42 AM
|
0
|
0
|
2054
|
|
POST
|
Oh, sorry, 3.x definitely has a variety of map navigation overrides, for example https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#disablemapnavigation
... View more
06-07-2019
08:44 AM
|
0
|
1
|
1748
|
|
POST
|
Roman König can you share your app? Or if you don't want to share it publicly can you email it to me agup at esri dot com? The 4.x API is designed to make highly optimized queries automatically when working with AGOL feature layers. If you've hit on a use case that is creating an issue we want to learn more about it. Also please note that querying all features at once isn't necessarily the most efficient approach. It can cause networking, processing and rendering bottlenecks and usually makes it more challenging to take advantage of a variety of caching strategies.
... View more
06-05-2019
09:21 AM
|
0
|
1
|
1336
|
|
POST
|
Hi Kristoffer, any chance you can re-post your question to the esri-loader, or angular-cli-esri-map github repos? For questions specifically about working with 3rd party JS frameworks (e.g. Angular, React, Vue, etc) we try to steer as much conversation to the respective github repos. In general, we recommend following the same best practices you would use for stand-alone JavaScript applications. Here's a DevSummit presentation that covers many of the aspects about performance in modern web apps, especially starting at around 25:52: https://www.youtube.com/watch?v=Jzj8fY-vBrk&list=PLaPDDLTCmy4Y0GMTl0O4V6LF3EmxIAivv&index=162&t=0s https://github.com/esri/esri-loader https://github.com/Esri/angular-cli-esri-map
... View more
06-05-2019
08:49 AM
|
0
|
0
|
1691
|
|
POST
|
Hi Tate, you can disable map navigation in the 4.x API, here are a few sample apps: https://developers.arcgis.com/javascript/latest/sample-code/view-disable-rotation/index.html?search=disable.
... View more
06-04-2019
04:16 PM
|
0
|
3
|
1748
|
|
POST
|
This is a duplicate question, for reference the thread is over on the github repo here: https://github.com/Esri/angular-cli-esri-map/issues/31
... View more
05-28-2019
07:53 AM
|
0
|
0
|
1181
|
| 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 |
Monday
|