|
POST
|
Hi there, You can use Query.orderByFields property to order your query results. Then pass the specified query object to FeatureLayerView.queryFeatures() method. You can choose to display the returned features on the map by adding them to graphics layer. You can also display the attributes where you need. You can also take advantage of FeatureLayerView.filter to display only features that meet your filter criteria. Then you can use the same criteria to query the features. In this simple app, I am using FeatureLayerView.filter to only display counties of the selected state. Then I use the filter criteria to query the counties of that state. In the query, I set the query.orderByFields to county names. When the results are returned, they are ordered by the county names. This is the code snippet that is most beneficial to you probably: countiesLayerView.filter = {
geometry: result.geometry // state geometry
};
var query = countiesLayerView.filter.createQuery();
query.orderByFields = ["COUNTY"];
countiesLayerView.queryFeatures(query).then(function(results){
results.features.forEach(function(feature){
console.log(feature.attributes.county);
});
}); Check out this simple app. The following screenshot shows how to use the app. Hopefully it is descriptive enough.
... View more
01-13-2021
01:03 PM
|
2
|
0
|
1471
|
|
POST
|
Hi there, This test app shows you how to load search widget without map. Hope this helps. -Undral
... View more
01-08-2021
03:32 PM
|
4
|
0
|
2755
|
|
POST
|
Hi there, This issue will be fixed at the JS API version 4.18. It is planned to be released end of December. You can test the fix using the `next` version of the api sometime next week. Please find more information about the next version here:https://github.com/Esri/feedback-js-api-next#:~:text=Welcome%20to%20the%20next%20version,production%20release%20in%20December%202020. Thanks, -Undral
... View more
11-12-2020
07:17 PM
|
0
|
0
|
4754
|
|
POST
|
Hi there, Thank you for reporting this issue and providing a reproducible case. We were able to reproduce the issue and will get it fixed as soon as we can. I will update you once it is fixed. Thanks, -Undral
... View more
11-03-2020
01:26 PM
|
0
|
0
|
4760
|
|
POST
|
Hi there, This issue is fixed at 4.17. You can verify it using the test app you provided. -Undral
... View more
10-23-2020
08:53 AM
|
0
|
1
|
2501
|
|
POST
|
It is working as designed. It wont fill the extent of the polygon. It will fill the shape of the polygon. Rotation is working as designed. Stars wont scale (wont get smaller or bigger). The fillSymbol will always fill the polygon you are creating.
... View more
10-20-2020
11:51 AM
|
0
|
0
|
2250
|
|
POST
|
Can you please clarify the behavior you are describing? Here is what I see.
... View more
10-20-2020
09:27 AM
|
0
|
0
|
2250
|
|
POST
|
Hi there, It should behave just the way you said. Please let me know if you are running into issues. Check out this test app for how it should work. Create a rectangle and you should see picturefillsymbol scaling, resizing and rotating as expected. -Undral
... View more
10-20-2020
09:06 AM
|
0
|
2
|
2250
|
|
POST
|
Hi there, You can listen to create event on the sketch. When the create operation is completed, check the tool that created a shape, then divide the rectangle polygon extent's width and height by the view resolution. This will give you the rectangle polygon's extent width and heights in pixels. sketch.on("create", function(event){
// when draw rectangle create event is completed
if (event.state === "complete" && event.tool === "rectangle"){
console.log(event.graphic.geometry.extent.width / view.resolution, "pixels");
console.log(event.graphic.geometry.extent.height / view.resolution, "pixels");
}
}); Here is a doc for the MapView.resolution. -Undral
... View more
10-20-2020
08:51 AM
|
3
|
0
|
1958
|
|
POST
|
Hi there, I am able to reproduce the issue. The error thrown because the graphic geometries are null at the initial scale of your app. If you zoom in you will see all the geometries. The console error do not affect the functionality of your app. With this said, we created an issue to remove this error. Hope this helps, -Undral
... View more
10-19-2020
02:47 PM
|
0
|
3
|
2501
|
|
POST
|
You have couple of issues in your json object. Please see the code below with comments. var graphic = {
"geometry":{
"type": "point", // You must set your geometry type.
"spatialReference":{
"latestWkid":3857,
"wkid":102100
},
"x":243208.09643883476,
"y":2940285.766420703,
"z":351.9580905416081
},
"symbol":{
"type":"point-3d",
"symbolLayers":[{
"type":"icon", // Types are case sensitvie. This should be lower case icon
"material":{ },
"resource":{
"primitive":"kite"
},
"size":75,
"outline":{
"color":[255,0,0],
"size":2.25
}
}]
},
"attributes":{},
"popupTemplate":null
}
... View more
10-16-2020
08:53 AM
|
1
|
0
|
1105
|
|
POST
|
Hi there, Thanks for reporting this issue. We created an issue for this and will ping you here as soon as we resolve it. Thanks, -Undral
... View more
10-15-2020
09:02 AM
|
1
|
2
|
3875
|
|
POST
|
Hi there, Are you loading your non-spatial table? Non-spatial table instance can be created from the table url in a service and the table must be loaded by calling load() method. // Add a non-spatial table.require(["esri/layers/FeatureLayer"], function(FeatureLayer){ // points to the non-spatial table in a service storing San Francisco crime incidents. const table = new FeatureLayer({ url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/FeatureServer/1" }); table.load().then(function() { // table is loaded. ready to be queried on the server. }); }); Here is a doc: FeatureLayer | ArcGIS API for JavaScript 4.17
... View more
10-13-2020
02:43 PM
|
1
|
1
|
2559
|
|
POST
|
Hi there, It is stated in the document that TileLayer only works with cached map services. With the implementation of ImageryTileLayer we refactored the code for TileLayer as well. This change is noted in the Imagery Layer updates section in Release Notes. -Undral
... View more
07-23-2020
11:49 AM
|
1
|
0
|
2313
|
|
POST
|
Hi there, This issue will be fixed at 4.16 which is planned to be released sometime early July. Thanks, -Undral
... View more
06-27-2020
08:11 PM
|
0
|
0
|
5690
|
| 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
|