|
POST
|
Have you tried dialog-create event? https://developers.arcgis.com/javascript/3/jsapi/identitymanager-amd.html#event-dialog-create
... View more
05-16-2022
04:14 PM
|
0
|
0
|
931
|
|
POST
|
Hi there, You can do something like the following where I am checking if the mouse is over the polyline. view.on("pointer-move", eventHandler);
function eventHandler(event) {
// only include graphics from graphicslayer in the hitTest
const opts = {
include: graphicsLayer
};
view.hitTest(event, opts).then((result)=>{
if (result.results.length > 0) {
result.results.forEach((r)=>{
if (r.graphic.geometry.type === "polyline"){
document.body.style.cursor = "pointer";
}
});
} else {
document.body.style.cursor = "auto";
}
});
}
... View more
05-16-2022
12:24 PM
|
1
|
2
|
3416
|
|
POST
|
Hi there, You need to specify the bandIds on the ImageryLayer so that renderer uses the right band. We will update RasterStretchRenderer documentation to indicate that one needs to set the bandIds when working with multi-band image services. With that said, we will look into improving the current behavior. I set up a simple codepen app: https://codepen.io/U_B_U/pen/VwQmPdg?editors=100 In this app, I am setting the bandIds to first band (magnitude band) and applying the raster stretch renderer. The color ramp is honored in this case.
... View more
05-13-2022
03:55 PM
|
1
|
0
|
4983
|
|
POST
|
Hi there, You can do it several different ways. In any case, I set up a simple codepen app showing this. I am using SketchViewModel to draw a rectangle on the map. Then we filter the graphics that intersect with the rectangle and delete those graphics. Here is the codepen app: https://codepen.io/U_B_U/pen/YzeppyZ?editors=1000
... View more
05-13-2022
01:37 PM
|
0
|
1
|
2081
|
|
POST
|
Hi there, The sample should work with a feature service with any geometry types. Can you tell me which line or method s throwing this error? Simple reproducible case can help to narrow down the issue. Here is the same sample working with polygon feature service: https://codepen.io/U_B_U/pen/QWQERdX?editors=1000
... View more
05-11-2022
12:43 PM
|
1
|
1
|
1785
|
|
POST
|
HI there, At 4.23, we added a support for contingent attribute values in FeatureForm: https://developers.arcgis.com/javascript/latest/release-notes/#featureform You should be able to use this without having write a code to keep the integrity of your data.
... View more
05-06-2022
03:08 PM
|
0
|
1
|
1464
|
|
POST
|
Hi there, You can use geometryEngine.geodesicArea method to calculate the polygon area while user is reshaping the polygon. I updated the sample you linked to showcase how to check if the polygon area is less than 1000 acres. Then let user make a change otherwise, force user to reshape the polygon. Having it equal to one number will probably be a challenge for users unless you help to set the area. My changes are in onGraphicUpdate function. https://codepen.io/U_B_U/pen/qBxbWOy?editors=1000 -Undral
... View more
05-06-2022
02:58 PM
|
0
|
1
|
1190
|
|
POST
|
Hi there, Please take a look at the FeatureLayer.applyEdits doc. To update features, you must pass in array or collection of features! So you have to update your code to query the features your want to update, then update the attributes of the features and pass in those features to the FeatureLayer's updateFeatures param. So you'd have to something like the following: // editFeature is a feature you got from your feature layer
editFeature.attributes[announcement] = newAnnouncement;
// Setup the applyEdits parameter with updates.
const edits = {
updateFeatures: [editFeature]
};
featureLayer.applyEdits(edits).then((editsResult) => {
console.log(editResult);
})
.catch((error)=>{
console.log(error);
}); Please take a look at the following two samples as they both use FeatureLayer.applyEdits: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=editing-applyedits https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-featurelayer-collection-edits
... View more
05-04-2022
09:16 AM
|
1
|
1
|
3312
|
|
POST
|
You are getting this error because you are corrupting your polyline geometry. For example, the polyline is going from: [9316221.444425754, 5694060.22603468]
[10270155.5574245, 6091609.210145776]
To
11311599
[10270155.5574245, 6091609.210145776] You should use Polyline.setPoint method to update the vertices or the other methods to change the polyline geometry. Or you have to make sure that you are changing the right values in the array without corrupting the array of vertices. The following for example works in your app: copyGraphic.geometry.paths[0][0][0] = firstGraphic.geometry.paths[0][0][0] + 300000;
copyGraphic.geometry.paths[0][0][1] = firstGraphic.geometry.paths[0][0][1] + 300000;
... View more
04-25-2022
03:53 PM
|
1
|
0
|
1407
|
|
POST
|
Hi there, What @KenBuja said. If you are using version 4.23, then please use reactiveUtils instead of watchUtils. // this will only run once after layerview finishes updating for the first time
view.whenLayerView(layer).then((layerView) => {
reactiveUtils.whenOnce(() => !layerView.updating).then(() => {
console.log("layer finished updating");
});
});
... View more
04-22-2022
08:46 AM
|
4
|
0
|
2882
|
|
POST
|
The codepen app uses picture marker symbols with 40px x and y offset for point features. Layer has popuptemplate which uses hitTest. The hittest precision is already way better. Is this what you not see? Can you please provide me a reproducible code if you do not see it fixed in the next version.
... View more
04-22-2022
08:14 AM
|
1
|
1
|
2660
|
|
POST
|
Hi there, Can you please provide a simple reproducible case? I set up a simple test app and I am not able to reproduce issue. But perhaps I may have misunderstood your issue. In the following test app, I am creating a feature collection and set the definitionExpression. Then from update attributes button, I change the attributes of two features. Layer is updated correctly show the features that only meet the definitionExpression. https://codepen.io/U_B_U/pen/wvpObbJ?editors=100
... View more
04-21-2022
03:33 PM
|
0
|
0
|
855
|
|
POST
|
Hi there, We overhauled the MapView.hittest implementation at 4.23 to return all features at a given hit point, not just the topmost ones, and changed the implementation to perform on GPU. The issue you are describing is a known issue and we addressed this issue at 4.24. You can check the fix using our next version. This simple codepen app shows the fix: https://codepen.io/U_B_U/pen/abEMrzq?editors=1000. We cannot do a patch for 4.23 at this time. Undral
... View more
04-21-2022
02:22 PM
|
0
|
1
|
2703
|
|
POST
|
Adding more information for my previous comment. ImageryTileLayer internally uses raster information model, which supports NoData pixels. When a pixel or tile is missing or has a nodata mask, it's required to honor it as NoData. The raster has a resolution (corresponds to finest LOD), and uppersampling happens beyond that --- that's the "overzoom" you can see. This design is consistent with ArcGIS Pro, and consistent with ImageryLayer (if the same elevation cache dataset is published as a dynamic image service) --- when using world elevation 3D service for display. The primary purpose of World elevation3D service is still providing elevation for 3D. In future, we can look into adding some special logic/flags to handle this in the JS API.
... View more
04-21-2022
10:52 AM
|
0
|
0
|
594
|
|
POST
|
Hi there, This is not a bug! The API working as designed. ImageryTilelayer does a raster level overzoom not a tile based over zooms. It will over zoom the data from the last available LOD. There is no data for areas such as Tibet at the last available LOD. So when we over zoom, we don't show data since there is no data available at the last available LOD. We can add a boolean flag to resample tiles from its last available LOD. However, in this case the result will be incorrect completely. -Undral
... View more
04-21-2022
10:13 AM
|
0
|
2
|
4249
|
| 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
|