softengsquad / studentmap

0 stars 0 forks source link

Sof 13/feature/display buildings #18

Closed lewisclark closed 4 months ago

lewisclark commented 4 months ago

this PR pulls building information from the database to visualize as markers on the map

image

JohanKool3 commented 4 months ago

I've ran the program with this branch and the buildings aren't being shown on my map. I'll try upgrading my versions. Here is the output I get in my emulator.

image

lewisclark commented 4 months ago

I've ran the program with this branch and the buildings aren't being shown on my map. I'll try upgrading my versions. Here is the output I get in my emulator.

image

Oh yeah, I forgot to mention that populate.sql needs to be re-run on the database. The way I've been doing this during development is by adding a || true to the condition here. This will delete the database and force schema.sql and populate.sql to be executed again.

I'm not too sure why the roads are showing black in your environment.

JohanKool3 commented 4 months ago

I've ran the program with this branch and the buildings aren't being shown on my map. I'll try upgrading my versions. Here is the output I get in my emulator. image

Oh yeah, I forgot to mention that populate.sql needs to be re-run on the database. The way I've been doing this during development is by adding a || true to the condition here. This will delete the database and force schema.sql and populate.sql to be executed again.

I'm not too sure why the roads are showing black in your environment.

There is a constant that we can use during debugging called kDebugMode, it is true when the program is run in debug mode - which means for those kind of features we can use it instead of adding and then removing code. https://api.flutter.dev/flutter/foundation/kDebugMode-constant.html

lewisclark commented 4 months ago

I've ran the program with this branch and the buildings aren't being shown on my map. I'll try upgrading my versions. Here is the output I get in my emulator. image

Oh yeah, I forgot to mention that populate.sql needs to be re-run on the database. The way I've been doing this during development is by adding a || true to the condition here. This will delete the database and force schema.sql and populate.sql to be executed again. I'm not too sure why the roads are showing black in your environment.

There is a constant that we can use during debugging called kDebugMode, it is true when the program is run in debug mode - which means for those kind of features we can use it instead of adding and then removing code. https://api.flutter.dev/flutter/foundation/kDebugMode-constant.html

Sweet. Just added this change.