|
POST
|
Ah ok great! Yes, one of the advantages of using the hosted services here is the generalization. With this, the service reduces the number of vertices one the line to what you can actually see on the screen at a given scale. This can massively reduce the amount of data the client needs to hold onto at any given point in time, loading the more precise data only when the user zooms in. Also we don't have to store all the data in the service, only the data on screen (and since 4.17 we actually keep the data the service returns to us, which is a pbf-encoded binary payload, in its compressed format always and work on the compressed data directly). Unfortunately with the feature collection, we also have to duplicate how we store the data (for threading). This is because shared memory is a bit of awkward thing in JS -- we use shared array buffers when possible (specifically for processed features we use this to store attribute data), but it's quite hard to share arbitrary json data between threads. And like you mentioned there may also be some real memory issue that was fixed in 4.17, despite there now being some other graphical problem...
... View more
12-04-2020
01:09 PM
|
0
|
0
|
1755
|
|
POST
|
@ChrisShaw if you can you provide a repro on codepen I can take a look. You can also try against /next and see if things are fixed. There were some fixes for clipping on tile boundaries that are in the 4.18 branch: https://github.com/Esri/feedback-js-api-next
... View more
12-04-2020
12:54 PM
|
0
|
0
|
1570
|
|
POST
|
@AndrewMurdoch1 - is this the same as the other app where you are seeing the graphical bug in 4.17? Performance-wise, if you are able to use hosted feature layers (rather than query geojson -> create feature-layer from feature collection), that should perform dramatically better. With lines, server-side generalization can improve performance immensely. With the client-side feature collection, it requires loading all the data upfront and building spatial indices/querying/quantizing/re-projecting all on the client. 1 larger feature layer will also usually perform better than many small ones because each feature layer includes some upfront memory costs.
... View more
12-04-2020
12:53 PM
|
1
|
2
|
1770
|
|
POST
|
Ok great! (Just realized I posted with the wrong account 😅 - this is my official one)
... View more
12-04-2020
12:40 PM
|
1
|
2
|
4099
|
|
POST
|
Hi Jesse Williams Sorry you're running into this - yes this is indeed a bug that happens when applyEdits is called multiple time simultaneously, unfortunately we were missing some automated test coverage for this. We just installed a fix for this in our master branch, should be on /next sometime next week. Can you try the workaround in https://codepen.io/matt9222/pen/GRqWYNo and see if that fixes your issue? Calling the `applyEditsToLayer(layer, edits)` function instead of layer.applyEdits directly should force the edits to be serialized.
... View more
10-28-2020
10:33 AM
|
2
|
6
|
9675
|
|
POST
|
Yes ... it took us a while but we were finally able get this in! Let me know if you run into any issues.
... View more
10-09-2020
10:37 AM
|
0
|
1
|
7851
|
|
POST
|
Hi Tom, For Vector Tiles, we do indeed use the Mapbox Vector Tile spec. The f=pbf format of FeatureServices however is an esri Feature Tile serialization spec. Feature Tiles are more for dynamic visualizations, whereas Vector Tiles are better for things like basemaps. The documentation on this has been held up, but I think more details should be forthcoming. I'll check in again. We've also worked to improve the performance of pbf encoded Feature Tiles in our upcoming 4.17 release. Whereas before we were doing some quite a bit of conversion to deserialize features, we've reworked things so that we can work directly against the compressed binary data. Matt
... View more
09-29-2020
04:13 PM
|
0
|
2
|
5200
|
|
POST
|
4.17 is releasing very soon. This seems to be a race condition, so slight differences in timings (from misc. code changes, etc) could all contribute to whether or not this happens in particular versions.
... View more
09-24-2020
12:54 PM
|
1
|
1
|
2591
|
|
POST
|
Sorry Andrew Murdoch! I would like to say yes, but this isn't the kind of thing we usually backport (that's mainly reserved for browser breaking changes that prevent earlier versions of the API from working)
... View more
09-24-2020
12:30 PM
|
1
|
3
|
2591
|
|
POST
|
Andrew Murdoch I just installed a fix into our 4.17 dev branch, which seems to at least fix my repro. I'll let you know when that get's pushed to /next.
... View more
09-23-2020
02:17 PM
|
1
|
5
|
2591
|
|
POST
|
Thanks! I think I can repro this with https://codepen.io/matt9222/pen/rNePaLW?editors=1000. Seems to be a timing issue with removing a layer while it's still loading. This is on ubuntu 20/chrome (using an outdated chrome due to the latest version having super borked devtools on linux). Need to have devtools open + cache disabled (can repro maybe 30% of the time). I think these should be "ok" errors as they are basically just aborts - we should be catching them though (& rethrow only if not an AbortError). Taking a look.
... View more
09-23-2020
01:03 PM
|
1
|
7
|
3600
|
|
POST
|
You can send it to me (mgeorge@esri.com), however I think the HAR capture likely won't help us much here. We've made a bunch of changes to the way feature layers load, as well as fixed a rare issue that could happen with the workers communication, so it might be best to wait for that and see if we can still see the problem (the changes are currently live on /next).
... View more
09-23-2020
11:41 AM
|
0
|
13
|
3600
|
|
POST
|
Oh sorry, if what I think is happening is actually what's causing the issue, it would only theoretically happen if the layer is added and removed very quickly. Just adding a feature layer shouldn't cause the problem.
... View more
09-23-2020
11:39 AM
|
0
|
0
|
3600
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-27-2026 10:39 AM | |
| 1 | 07-11-2025 09:45 AM | |
| 2 | 04-25-2025 09:43 AM | |
| 2 | 04-24-2025 03:06 PM | |
| 2 | 03-25-2024 12:13 PM |
| Online Status |
Offline
|
| Date Last Visited |
04-09-2026
09:53 AM
|