This commit is contained in:
2022-07-21 09:05:28 +05:30
parent 25410a7ebd
commit e32401b570
3 changed files with 44 additions and 5 deletions

View File

@ -7,13 +7,17 @@ import 'package:rogapp/pages/index/index_controller.dart';
class SearchController extends GetxController {
List<GeoJsonFeatureCollection> searchResults = <GeoJsonFeatureCollection>[].obs;
List<GeoJsonFeature> searchResults = <GeoJsonFeature>[].obs;
@override
void onInit() {
IndexController indexController = Get.find<IndexController>();
indexController.locations.addAll(indexController.locations);
for(int i=0; i<= indexController.locations[0].collection.length - 1; i++){
GeoJsonFeature p = indexController.locations[0].collection[i];
searchResults.add(p);
}
super.onInit();
}