getBuildings method
Gets all buildings from the loaded geometry.
Implementation
Future<List<Map<String, dynamic>>> getBuildings() async {
final fc = await controller.geometry.getGeoJSON();
final List<Map<String, dynamic>> buildings = [];
if (fc != null && fc['features'] != null) {
for (final f in fc['features']) {
if (f['properties']['user_feature_type'] == 'building' || f['properties']['feature_type'] == 'building') {
buildings.add(f);
}
}
}
return buildings;
}