How do I make a selection to get the desired layers by attribute?

292
0
04-01-2019 10:24 AM
AlexanderKulikov
New Contributor II

Hi! There is a web map downloaded from ArcGIS Online. How do I make a selection to get the desired layers by attribute? for example, floor = 3

Portal portal = new Portal("http://www.arcgis.com");
PortalItem mapPortalItem = new PortalItem(portal, "---ID---");
ArcGISMap map = new ArcGISMap(mapPortalItem);
mMapView.setMap(map);

I know about mFeatureLayer.setDefinitionExpression, but how to apply it to mapView?

0 Kudos
0 Replies