我已在我的应用程序中实现了ArcGIS Runtime 100 Map SDK,但遇到了问题。
我一直试图在使用ServiceFeatureTable选择的功能中加载所有属性,但似乎无法正常工作。大多数情况下,它会将属性值返回为null。下面是代码,
Geometry geometry = GeometryEngine.simplify(selectionGraphic.getGeometry());
QueryParameters query = new QueryParameters();
query.setGeometry(geometry);
query.setOutSpatialReference(SpatialReferences.getWgs84());
ListenableFuture<FeatureQueryResult> selectFuture = serviceFeatureTable.queryFeaturesAsync(query, ServiceFeatureTable.QueryFeatureFields.LOAD_ALL);
selectFuture.addDoneListener(() -> {
try {
FeatureQueryResult features = selectFuture.get();
selectableLayer.selectFeatures(features);
selectFeatures(features);
}
catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
}
});
有人可以帮我提供任何解决方案吗?