|
POST
|
Yes you create the globalId yourself. You could use one of the guid generators.
... View more
05-02-2024
11:29 AM
|
1
|
1
|
1800
|
|
POST
|
Hi there, You need to wait for the StreamLayer is loaded and its layerView is in place. At 4.29, you need to wait for StreamLayerView.updating becomes false once at the time of load. At 4.30, you will only need to wait for the StreamLayerView is created. In any case see this thread - https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/first-calls-to-sendmessagetoclient-not-used/m-p/1407481#M84259
... View more
05-02-2024
09:36 AM
|
0
|
0
|
676
|
|
POST
|
Hi there, Yes it can be done. You need to create a new feature with a globalId and use that globalId for the attachments all in one applyEdits method. You applyEdits param would look something like the following const edits = {
addFeatures: new Collection(addFeatures),
deleteFeatures: deleteFeatures,
addAttachments: addAttachments,
updateAttachments: updateAttachments,
deleteAttachments: deleteAttachments
} where where the new Feature has a new global id attribute set... something like GlobalID: "f0e2d7a2-b1b7-4f34-a080-c87286001e39" Then your addAttachments array has a new attachment as created something like below: addAttachments.push({
feature: newFeature,
attachment: {
globalId: f0e2d7a2-b1b7-4f34-a080-c87286001e39,
name: "your attachment name,
data: input.files[0] || blob
}
}); Notice that the globalId of the attachment matches the global id of the new feature you are creating. Then just call applyEdits with those two params set on `edits` param. Hope this makes sense.
... View more
05-02-2024
08:57 AM
|
1
|
1
|
1812
|
|
POST
|
We will take a look into this behavior. Can you please give me some specifics on how many features, what kind of updates and update frequency? thanks
... View more
04-22-2024
08:52 AM
|
0
|
1
|
3909
|
|
POST
|
Hi there, We addressed this behavior and now you do not need to wait for the layerView.updating becomes false for the first time. You can test the new behavior against our next version. Here is a codepen showing the fix: https://codepen.io/U_B_U/pen/NWmMRZa?editors=1001
... View more
04-17-2024
03:38 PM
|
0
|
0
|
3211
|
|
POST
|
You need to set the FeatureLayer.outFields property to get all the fields as explained in the doc.
... View more
04-12-2024
11:36 AM
|
0
|
0
|
810
|
|
POST
|
Hi there, So I looked at the behavior more. We will update the sample. In any case, the first call to sendMessageToClient() should be when the StreamLayerView is fully loaded and ready. I updated your codepen to show the correct workflow: https://codepen.io/U_B_U/pen/NWmMRZa?editors=1001 the main change being what is shown below. view.whenLayerView(layer).then( async (layerView) =>{
await reactiveUtils.whenOnce(() => !layerView.updating);
layerView.on("message-received", (event) =>{
console.log("message-received event", event);
});
layer.sendMessageToClient({YOUR MESSAGE});
});
... View more
04-09-2024
08:57 AM
|
0
|
0
|
3283
|
|
POST
|
Hi there, I am not able to reproduce the behavior you are referring to. Can you please provide a simple codepen that shows the behavior in question? Which version of the API are you using?
... View more
04-09-2024
08:36 AM
|
0
|
0
|
550
|
|
POST
|
Hi there, We addressed the issue and the fix will be available on https://js.arcgis.com/next after next Tuesday. Please test it out and let us know if it is working as expected. Thank you again for reporting this issue. -Undral
... View more
04-04-2024
02:32 PM
|
1
|
1
|
3349
|
|
POST
|
You have to update the field names for the query in your app. You are using wrong field names. For example, your service does not have a field called areaName. In any case, I updated the same codepen to reflect these changes. Please create a new question if you need further help on this.
... View more
04-03-2024
02:33 PM
|
1
|
0
|
410
|
|
POST
|
Thanks for the codepen. A few things. First you already have the layer in your webmap. So there is no need to add another instance of it to your map. You can simply get the instance of the layer once the webmap is loaded. Then you have to set the outFields of the layer to all. I sent you the modified codepen directly.
... View more
04-03-2024
09:25 AM
|
1
|
1
|
1669
|
|
POST
|
I won't be able to help without an actual reproducible case. Can you provide one?
... View more
04-03-2024
09:06 AM
|
0
|
0
|
1672
|
|
POST
|
Reproducible case would be useful here. Can you provide one? Here is a simple example of adding polygon graphic to GraphicsLayer: https://codepen.io/U_B_U/pen/abxEGzr?editors=100
... View more
04-03-2024
09:05 AM
|
0
|
0
|
444
|
|
POST
|
What exactly are you trying to do? The sample you referenced does not display popup. It rather displays just a few info in a DIV tag as user moves the mouse over the features. Can you provide a working codepen so that I can help you further?
... View more
04-03-2024
08:52 AM
|
0
|
1
|
1678
|
|
POST
|
You are not waiting for the queryFeatures method to resolve to return the results. You can make the following changes to get your codepen working. Notice that I added async to the click event handler and await to the layerView.queryFeatures... reactiveUtils.on(
() => view, "click", async (event) => {
console.log("Click event emitted: ", event);
try {
const featureSet = await layerView.queryFeatures({
geometry: event.mapPoint,
returnGeometry: true,
orderByFields: ["GEOID"]
});
// rest of the code
... View more
04-03-2024
08:22 AM
|
2
|
0
|
687
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2025 03:29 PM | |
| 1 | 07-09-2025 08:48 AM | |
| 2 | 07-08-2025 08:09 AM | |
| 2 | 07-07-2025 03:57 PM | |
| 1 | 06-11-2025 03:25 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-01-2025
08:03 AM
|