Использую примеры mapkit-android-демо не могу понять как убрать много объектов .надо чтоб набрал edittext адрес и показывало 1 объект

@Override
    public void on Search Response(Response response) {
        Map Object Collection mapObjects = mapView.getMap().get MapObjects();
        mapObjects.clear();

        for (GeoObjectCollection.Item search Result : response.getCollection().getChildren()) {
            Point result Location = search Result.getObj().get Geometry().get(0).getPoint();
            if (result Location != null) {
                mapObjects.add Placemark(
                        result Location,
                        Image Provider.from Resource(this, R.drawable.search_result));
        Camera Position camera Position = new Camera Position(result Location, 14.0f, 0.0f, 0.0f);
                mapView.getMap().move(camera Position);
            }
        }

Ответы (0 шт):