|
IDEA
|
03-15-2023
10:37 AM
|
0
|
0
|
1384
|
|
IDEA
|
03-15-2023
10:31 AM
|
0
|
0
|
2721
|
|
POST
|
This actually (view.goTo(view.graphics) is the one of the preferred way to zooming into array of graphics. You don't have to do what you are doing in your first post. I tested this with 4.24 and the MapView.goTo is working as expected. Here is a simple codepen shows It working: https://codepen.io/U_B_U/pen/wvEmEzw?editors=1000
... View more
03-14-2023
08:55 AM
|
2
|
1
|
990
|
|
POST
|
Hi there, You can use the esri/request to get the data in geojson format (provided that it is your data). I am sure there are different libraries or approaches of converting geojson to csv. document.getElementById("queryButton").addEventListener("click", ()=>{
let url = "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0/query?where=1=1&f=pgeojson";
esriRequest(url, {
responseType: "json"
}).then(function(response){
// The requested data
let geoJson = response.data;
console.log(geoJson)
});
});
... View more
03-14-2023
08:36 AM
|
2
|
0
|
5829
|
|
POST
|
Hi there, You will have to query the features on the layer view once you change the layer view's feature filter. You can do it as shown below: // Get a query object from the filter's current configuration
const queryParams = earthquakesLayerView.filter.createQuery();
earthquakesLayerView.queryFeatures(queryParams)
.then(function(results){
console.log("results", results.features);
});
... View more
03-10-2023
09:41 AM
|
1
|
1
|
1265
|
|
POST
|
Hi there, JPEG is a lossy compression. If you inspect it closely, you'll find pixel values like 0, 1, 2 etc around the edge. Something probably cannot be removed with a simple use of nodata. There's another aspect, because source is a lossy compression, there's a high chance of false positives when declaring a value as nodata. You can investigate the pixel values by calling identify method on the layer as shown below. view.on(["pointer-move"], (event) => {
const point = view.toMap({ x: event.x, y: event.y });
layer.identify(point).then((results) => {
if (results.value) {
console.log(results.value);
}
})
.catch((error) => {
if (!promiseUtils.isAbortError(error)) {
throw error;
}
});
});
... View more
03-09-2023
09:54 AM
|
0
|
0
|
1270
|
|
POST
|
HI there, You can listen to SketchViewModel.create event like you are doing. Create event fires when yon start sketching a graphic, while actively sketching it and when you complete sketching the graphic. The event payload returns things like state and the state will be active while you are drawing the graphic. The toolEventInfo returns additional information you can could tap into. Event also returns the graphic that is being drawn. You can keep checking the geometry of this graphic to make sure that it is still acceptable. This sample shows how to check if the polygon is valid while user is updating the geometry. It uses sketchViewModel. Perhaps it will give you some ideas how you can do the same thing while creating a graphic. https://developers.arcgis.com/javascript/latest/sample-code/sketch-update-validation/
... View more
03-07-2023
12:19 PM
|
0
|
1
|
1511
|
|
POST
|
Hi there, Do you have a reproducible case for this? I am not able to reproduce what you are describing here. I tested it and the following code document.getElementById("queryButton").addEventListener("click", ()=> {
const where = "UPPER(STATE_NAME) LIKE 'Miss%'"
featureLayer.queryFeatures({where: where}).then((results)=>{
console.log(results)
});
}); results in this query.
... View more
03-07-2023
12:07 PM
|
0
|
1
|
1434
|
|
POST
|
It is working for me. Here is a codepen shows it working: https://codepen.io/U_B_U/pen/JjarRyY?editors=1000
... View more
03-07-2023
11:22 AM
|
1
|
1
|
1926
|
|
POST
|
Hi there, It looks like you can no longer autocast the FieldsContent object. If you update your code to create and return a new instance of this class then the popup should/will work. I tested it quickly and in my test the following works. function getPopupTemplate(displayTitle) {
const template = {
title: displayTitle,
content: function (target) {
const fields = [{
"fieldName": "Street",
"label": "Street",
}];
let fieldsElement = new FieldsContent({
fieldInfos: fields
});
return [fieldsElement];
},
}
return template;
}
... View more
03-07-2023
09:54 AM
|
0
|
1
|
1934
|
|
POST
|
Hi there, For question 1: You can listen to FeatureTable's selection-changed event to achieve what you are describing. I updated codepen to listen to selection-changed event. I also update the hittest logic to only return results from the streets light layer by setting the include parameter. I also updated it to highlight all overlapping features. https://codepen.io/U_B_U/pen/poOrPbj?editors=0010 For question 2. Please check out Zoom and LODs section in the MapView doc. Zoom is not working because of the behavior described in that section. For question 3. You can use Editor widget with createWorkflow perhaps. Please check out this sample and re-purpose it? https://developers.arcgis.com/javascript/latest/sample-code/popup-editaction/ I tried FeatureLayer.applyEdits with Editor updateWorkflow but looks like your service does not support update. I ended up adding a few new features with null attributes. Hope that is OK. The codepen above has my quick test commented out. Hope this helps, -Undral
... View more
03-06-2023
02:37 PM
|
2
|
1
|
1732
|
|
POST
|
Hi there, Not sure if you already found your answers. What you are asking can be done and much more. We have tons of samples that show different use cases: https://next.sites.afd.arcgis.com/javascript/latest/sample-code/?tagged=clustering Clustering is also really well documented including this guide: https://next.sites.afd.arcgis.com/javascript/latest/visualization/high-density-data/clustering/ Here is a simple codepen just in case: https://codepen.io/U_B_U/pen/eYLWXpP?editors=100 Hope this helps, -Undral
... View more
03-03-2023
01:00 PM
|
0
|
0
|
2541
|
| 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
|