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
Wednesday
|
0
|
0
|
27
|
POST
|
You need to set the FeatureLayer.outFields property to get all the fields as explained in the doc.
... View more
a week ago
|
0
|
0
|
63
|
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
2 weeks ago
|
0
|
0
|
99
|
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
2 weeks ago
|
0
|
0
|
31
|
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
2 weeks ago
|
1
|
1
|
84
|
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
2 weeks ago
|
1
|
0
|
34
|
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
2 weeks ago
|
1
|
1
|
126
|
POST
|
I won't be able to help without an actual reproducible case. Can you provide one?
... View more
2 weeks ago
|
0
|
0
|
129
|
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
2 weeks ago
|
0
|
0
|
46
|
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
2 weeks ago
|
0
|
1
|
135
|
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
2 weeks ago
|
2
|
0
|
90
|
POST
|
This error has nothing to do with the query action. The error is saying you have a MedialLayer in your app and that its media element cannot be displayed. You should remove the MediaLayer and start with a simpler app.
... View more
2 weeks ago
|
0
|
1
|
153
|
POST
|
Hi there, You can use geometryEngine.intersect method to get a new geometry from intersection between two geometries. I updated your codepen to show this: https://codepen.io/U_B_U/pen/jORYZmN?editors=1000
... View more
2 weeks ago
|
1
|
0
|
87
|
POST
|
What is the error you are getting? Looks like the query might not be running successfully just looking at your code. Here you are saying the areaName is coming from Neighbor_1 field. const areaName = attributes.Neighbor_1; But later you are using the following query where the field name is NAME. Which one is it? query.where = "NAME = '" + areaName + "'";
... View more
2 weeks ago
|
0
|
1
|
197
|
POST
|
Hi there, When creating a client-side FeatureLayer, you must set the layer's schema correctly in the layer constructor especially if the source is not set. You cannot just set fields schema to wild card. You need to set the fields schema. Since you are creating a new client-side feature layer from query results, try changing your code as shown below and see if it fixes the problem. const featureSet = results.features;
const layer = new FeatureLayer({
source: featureSet,
geometryType: featureSet.geometryType,
objectIdField: "OBJECTID",
fields: featureSet.fields,
renderer: selSketchRenderer,
//spatialReference: results.features[0].geometry.spatialReference
});
... View more
3 weeks ago
|
1
|
1
|
87
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 2 weeks ago | |
1 | 2 weeks ago | |
2 | 2 weeks ago | |
1 | 2 weeks ago |
Online Status |
Offline
|
Date Last Visited |
Wednesday
|