trufi-association / trotro-app

Trufi-Core Adaptation for Accra-Ghana
https://trotro.app/
1 stars 6 forks source link

mapCenterCoordsLatLng and box in both files #2

Closed leoguti closed 4 years ago

leoguti commented 5 years ago

I have modified the file

assets / cfg / app_config.json

in order to change the center and area of the city of Duitama.

     "mapCenterCoordsLatLng": [5.82303, -73.03762],      "mapSouthWestCoordsLatLng": [5.76259, -73.09],      "mapNorthEastCoordsLatLng": [5.86897, -72.98995],

But, in the lib / main.dart file they also appear and I had to change it there to work, I think it is not taking the variables defined in app_config.json

amenk commented 5 years ago

Exactly. Is that indented or an error?

RaimundWege commented 5 years ago

The new behavior is intended. The config file is no longer part of trufi_core but the user of our dependency can still use it in his version of Trufi but he has to pass the config through the singleton instance ofTrufiConfiguration widget before (at this point we set the map center).

mdoelker commented 4 years ago

You may pull the value out of the JSON and initialize the LatLng object with it.