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
|
274
|
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
04-03-2024
07:37 AM
|
0
|
1
|
518
|
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
04-03-2024
07:35 AM
|
1
|
0
|
309
|
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
04-02-2024
03:40 PM
|
0
|
1
|
562
|
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
04-02-2024
08:20 AM
|
1
|
1
|
424
|
POST
|
Hi there Joel, Thank you very much for reporting this issue! So yes we did change the MapView.goTo() behavior to go to the entire extent of the given geometry while considering the view.rotation. At 4.28, goTo looked liked this We changed this behavior to show the whole extent With this behavior change, we introduced the bug you describe. I will create an issue to fix this bug. Thank you very much for putting the workaround here too. I will update you once we have a fix.
... View more
04-01-2024
10:19 AM
|
1
|
0
|
755
|
POST
|
Hi there We addressed this issue. You will be able to test out the fix next Tuesday or Wednesday on production. Thank you for reporting this issue.
... View more
03-15-2024
09:02 AM
|
0
|
0
|
186
|
POST
|
Hi there, The smartMapping colorRamps return array of colors so you'd have to pass the colors to the fromColors to toColors. At 4.29, we introduced esri/smartMapping/raster/support/colorRamps and they are used to create colorRamps for raster renderers. This sample shows how to use it: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-imagery-renderer
... View more
03-11-2024
08:07 AM
|
0
|
1
|
231
|
POST
|
Hi there, We found the cause of this issue. We will get this fixed at 4.29. I will update you as soon as the fix is installed. Thanks again.
... View more
03-07-2024
10:46 AM
|
0
|
0
|
245
|
POST
|
Actually I see what you are saying I think. Lines look pixelated. We will investigate this issue. Thanks for reporting.
... View more
03-07-2024
08:17 AM
|
0
|
0
|
254
|
POST
|
Hi there, Thank you for reporting this issue! We addressed the issue and the fix will be available on production sometime tomorrow.
... View more
03-04-2024
06:46 PM
|
1
|
1
|
376
|
POST
|
Hi there Can you please paste the renderer code (especially the symbol part) here? Thanks
... View more
02-28-2024
10:37 AM
|
0
|
1
|
472
|
POST
|
Hi there, You can watch FeatureTable.highlightIds and zoom to features or display popup as it is changes. In this codepen, we are zooming to the selected features: https://codepen.io/U_B_U/pen/QWoYBrR?editors=100 You can use MapView.openPopup() to display popups. Hope this helps, -Undral
... View more
02-16-2024
10:36 AM
|
0
|
1
|
234
|
POST
|
So you need to highlight features using FeatureLayerView.highlight method. Please take a look this codepen: https://codepen.io/U_B_U/pen/PoLVeVq?editors=1000 This sample could be useful: https://developers.arcgis.com/javascript/latest/sample-code/highlight-features-by-geometry/
... View more
02-16-2024
09:55 AM
|
1
|
1
|
501
|
POST
|
Guessing the issue where you are creating the UniqueValueRenderer. Please take a look at this doc and make sure you are setting everything right: https://developers.arcgis.com/javascript/latest/visualization/data-driven-styles/unique-types/
... View more
02-16-2024
09:00 AM
|
0
|
1
|
308
|
Title | Kudos | Posted |
---|---|---|
1 | a week ago | |
1 | 2 weeks ago | |
1 | 2 weeks ago | |
1 | a month ago | |
2 | 07-31-2024 09:30 AM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|