diff --git a/lib/genericMap.dart b/lib/genericMap.dart index 98bddde..9ae2ef2 100644 --- a/lib/genericMap.dart +++ b/lib/genericMap.dart @@ -59,12 +59,12 @@ class _GenericMapState extends State { falsePos = resultDecoded['falsePos']; industries = resultDecoded['industries']; - var firesCount = fires.length; - var industriesCount = industries.length; - var falsePosCount = falsePos.length; - - /* print( - 'fire: $firesCount falsePos: $falsePosCount industries: $industriesCount'); */ + if (globals.isDevelopment) { + var firesCount = fires.length; + var industriesCount = industries.length; + var falsePosCount = falsePos.length; + print('real: $numFires, fire: $firesCount falsePos: $falsePosCount industries: $industriesCount'); + } }); }); } diff --git a/lib/locationUtils.dart b/lib/locationUtils.dart index 67cd0a6..e7584a6 100644 --- a/lib/locationUtils.dart +++ b/lib/locationUtils.dart @@ -47,8 +47,8 @@ Future getUserLocation( Future getReverseLocation(BasicLocation loc, [bool external = false]) async { final coordinates = new Coordinates(loc.lat, loc.lon); - var geocoder = external ? Geocoder.google(globals.gmapKey) : Geocoder.local; - var addresses = await geocoder.findAddressesFromCoordinates(coordinates); + var geoCoder = external ? Geocoder.google(globals.gmapKey) : Geocoder.local; + var addresses = await geoCoder.findAddressesFromCoordinates(coordinates); var first = addresses.first; print("${first.featureName} : ${first.addressLine}"); return first.addressLine;