I'm using ArcGIS Runtine API for Java.
I add a layer to the map using:
private ShapefileFeatureTable featureTable;
...
File shapefile = new File("samples-data", "/Limites.shp");
ShapefileFeatureTable shapefileFeatureTable = new ShapefileFeatureTable(shapefile.getAbsolutePath());
featureLayer = new FeatureLayer(shapefileFeatureTable);
featureLayer.setOpacity(0.8f);
featureLayer.setMaxScale(10000);
featureLayer.addDoneLoadingListener(() -> {
if (featureLayer.getLoadStatus() == LoadStatus.LOADED) {
searchBox.setDisable(false);
} else {
Alert alert = new Alert(Alert.AlertType.ERROR, "Falha ao carregar o serviço de feições!");
alert.show();
}
});
...
How can I run a query in featureLayer, something like LEVEL_4_NA = 'Bahia' ?
Select by attribute? Not sure what this would be in Java language.