update
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user