|
POST
|
Oh sorry. I updated the app to use version 4.9. Here it is FeatureLayer.queryAttachments - 4.9 . foreach wont work because queryAttachments does not return array. It returns an object containing AttachmentInfo objects.
... View more
11-05-2018
01:47 PM
|
0
|
2
|
2009
|
|
POST
|
Hi there, I am really sorry it took me this long to reply. Somehow I did not see your post until today. Answer to your first question is No. We do not have plans to support expressions for data-driven styles. I logged an internal issue for your second question. It is definitely an issue. Thanks, -Undral
... View more
11-05-2018
01:42 PM
|
0
|
1
|
1032
|
|
POST
|
Hi there, Just want to let you know that this functionality will become available at 4.10.
... View more
11-05-2018
12:54 PM
|
4
|
0
|
2406
|
|
POST
|
Hi there, You are running into that issue because FeatureLayer.queryAttachments return type is wrongly documented. It does not return an array on AttachmentInfos. Instead it returns object containing AttachmentInfos grouped by the source feature ObjectIds. So you have to find the attachments by its objectId as shown below: featureLayer.queryAttachments(attachmentQuery).then(function (attachments) {
console.log("attachments:", attachments);
console.log("length of attachments", Object.keys(attachments).length);
attachmentQuery.objectIds.forEach(function (objectId) {
if (attachments[objectId]) {
var attachment = attachments[objectId];
console.group("attachment for", objectId);
attachment.forEach(function (item) {
console.log("attachment id", item.id);
console.log("content type", item.contentType);
console.log("name", item.name);
console.log("size", item.size);
console.log("url", item.url);
console.groupEnd();
});
}
});
}); Here is a test app that shows what is described above. We will update the document to show the right return type for queryAttachments method.
... View more
11-05-2018
12:31 PM
|
1
|
4
|
2009
|
|
POST
|
Hi there, It is not possible to do what you are asking at the current release. But we are looking into adding this functionality for vector tiles for a future release.
... View more
10-30-2018
02:20 PM
|
1
|
0
|
2406
|
|
POST
|
Yes, you should be able to. You point to your vector tile's style url or reference the style object itself when creating the vector tile layer. Please take a look at the following 4.9 sdk samples. If you are using 3.x version of the API, you should be able to do the same. Add vector tiles using style url Add vector tiles using style object
... View more
10-29-2018
08:33 AM
|
1
|
0
|
1191
|
|
POST
|
Hi there, It is because you are adding client side graphics via FeatureLayer.applyEdits. Anytime, you add or remove client side graphics, you must query the features to sync your client side graphics. So you must query features from the layer before you call applyEdits with deletes. Please see the code below: function deleteFeatures() {
layer.queryFeatures({
where: "1=1",
returnGeometry: true,
outFields: ["*"]
}).then(function(results){
var deleteFeature = results.features;
const edits = {
deleteFeatures: deleteFeature
};
layer.applyEdits(edits);
});
} I updated your test app to show this behavior: An Anonymous Pen on CodePen This behavior is explained here.
... View more
10-26-2018
02:04 PM
|
2
|
1
|
5159
|
|
POST
|
Hi there, Very short answer is yes. Here are the requirements for the data driven styles: JS API started supporting data driven style starting at 3.23 and 4.6. The vector tiles must be created using ArcGIS Pro 2.1 and published with ArcGIS 10.6. Search for vector tiles in the following doc to see what kind of data driven styles are supported for vector tiles. What's new in ArcGIS Pro 2.1—ArcGIS Pro | ArcGIS Desktop So if all requirements are met, then your first snippet should work. Expressions are not supported with vector tiles so the second snippet won't work. Hope this helps, -Undral
... View more
10-11-2018
01:30 PM
|
0
|
3
|
1032
|
|
POST
|
Hi there, Results are not displayed in the view because the spatialReference of your FeatureService does not match the spatialReference of the view. So you need to set the outSpatialReference of the query to match the view's spatialReference as shown below. query.where = "mci_category = 'Shooting'";
query.outSpatialReference = view.spatialReference; Here your application updated and the results are displayed.
... View more
07-26-2018
11:53 AM
|
1
|
1
|
1883
|
|
POST
|
Hi there, Couple of things going on with your test app. So the FeatureLayer you are adding to the application is not WebGL enabled. Please see the known limits for WebGL FeatureLayer here. Currently, WebGL FeatureLayer support is limited to layers created from feature services hosted on ArcGIS Online. Non-hosted enterprise feature services will be supported at the ArcGIS Server 10.6.1 release. So as a result, your FeatureLayer is loaded as SVG FeatureLayer and you are running client side query on SVG FeatureLayer. You can see the known limitations for client-side queries on SVG FeatureLayer here. In any case, your application will return results from this SVG FeatureLayer on the client if you add "spatialRelationship: intersects" to the query parameter as shown below. // query all the features available for drawing.
layerView.queryFeatures({
geometry: view.extent,
returnGeometry: true,
spatialRelationship: "intersects"
}).then(function(results) { Hope this makes sense, -Undral
... View more
06-13-2018
01:43 PM
|
1
|
1
|
1837
|
|
POST
|
Rene already answered the question. However, you may find this functionality matrix helpful when comparing 3.x and 4.x. Functionality matrix | ArcGIS API for JavaScript 4.7
... View more
06-05-2018
07:48 AM
|
0
|
1
|
2900
|
|
POST
|
Hi there, We will address this issue in our future release. Thank you pointing it out.
... View more
05-16-2018
11:15 AM
|
1
|
1
|
2293
|
|
POST
|
Hi there, You can use FeatureLayerView.queryFeatures + FeatureLayerView.highlight methods to replace FeatureLayer.selectFeatures. Here are couple of samples to show you how this can be done: Query features from a FeatureLayerView | ArcGIS API for JavaScript 4.7 Highlight features by geometry | ArcGIS API for JavaScript 4.7
... View more
04-24-2018
08:46 AM
|
0
|
0
|
2050
|
|
POST
|
Hi there, SketchViewModel is not supported in 3D at this time. It is designed to be used in 2D for now. With that said, the intersecting graphic is not being returned from SceneView.hitTest as it is pointed out in the document: Draped graphics (i.e. graphics in layers where the elevation mode is on-the-ground ) are currently not returned from this method, even when they intersect the input screen point. Hope this helps, -Undral
... View more
04-24-2018
08:29 AM
|
1
|
2
|
1306
|
|
POST
|
Hi there, If you are using 4.7, you can take advantage of a new CoordinateConversion widget.
... View more
04-24-2018
07:59 AM
|
2
|
0
|
2745
|
| 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
|