Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display beacons on map #96

Merged
merged 15 commits into from
Apr 12, 2024
Merged

Display beacons on map #96

merged 15 commits into from
Apr 12, 2024

Conversation

IB-12
Copy link
Collaborator

@IB-12 IB-12 commented Apr 9, 2024

Redid my work on a new branch due to some weird dependencies issues I was experiencing.
Closes #34

@IB-12 IB-12 requested a review from mbouaissi April 9, 2024 16:09
@IB-12 IB-12 self-assigned this Apr 9, 2024
Copy link
Collaborator

@mbouaissi mbouaissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is nice and well commented, well done. There is one thing. I think, we will have to adapt the way we are adding beaoncs to the map, as I did something diferent with the map ui issue #86, but it's more a detail. Also, maybe, but it might be another issue, and it's more UI related, we could try to have a different symbol for the beacon, or at least a different color, not just the plain red marquer. And also, try to show them only at a certain zoom level, to not overflow the map with it, when we will have a lot of them.
But overalll good job 👍

@IB-12
Copy link
Collaborator Author

IB-12 commented Apr 10, 2024

I tried adding custom icons but it's quite a hassle, but adding custom colors is pretty straightforward. Regarding the zoom level, I was thinking that we could give beacons a ranking, and only display those of a certain rank at a given zoom level, in order to have a smooth transition, but I'll create another issue for that.

@joriba
Copy link
Collaborator

joriba commented Apr 10, 2024

I tried adding custom icons but it's quite a hassle, but adding custom colors is pretty straightforward, I'll do it now. Regarding the zoom level, I was thinking that we could give beacons a ranking, and only display those of a certain rank at a given zoom level, in order to have a smooth transition, but I'll create another issue for that.

Yes I agree, this can be a future Issue

IB-12 added 5 commits April 10, 2024 21:42
…eacons-on-map

# Conflicts:
#	app/src/main/java/ch/epfl/cs311/wanderwave/model/data/Beacon.kt
#	app/src/main/java/ch/epfl/cs311/wanderwave/model/data/Location.kt
#	app/src/main/java/ch/epfl/cs311/wanderwave/ui/screens/MapScreen.kt
@IB-12 IB-12 requested a review from joriba April 10, 2024 20:31
Copy link
Collaborator

@joriba joriba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still had some comments
Also, you need to ktfmt to make the CI pass

@KlaKalma
Copy link
Collaborator

Thanks for the comments @joriba, I think the best thing to do would be to merge my pull request and then I can modify your branch directly to modify your changes. This would prevent the most merge conflits I think.

@IB-12
Copy link
Collaborator Author

IB-12 commented Apr 11, 2024

I'll wait for #92 to be merged because some of the tests I pulled from it do not pass yet.

@IB-12
Copy link
Collaborator Author

IB-12 commented Apr 11, 2024

I merged everything from main, and refactored my code to accommodate the changes. Als looks like @KlaKalma made the requested changes so I'll go ahead and mark the comments as resolved.

@IB-12 IB-12 requested review from joriba, KlaKalma and mbouaissi April 11, 2024 21:25
@joriba
Copy link
Collaborator

joriba commented Apr 11, 2024

I think you'll have to wait for #88 to be pulled in and then again resolve a lot of merge conflicts (very annoying ones, sorry...). The problem is that Clarence pulled in your earlier changes into his branch and then merged them into main. I took them from there and pulled them into my branch, resolving the merge.
I can help you resolve it tomorrow if you want

Copy link
Collaborator

@KlaKalma KlaKalma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try helping as well for the merge !

IB-12 added 2 commits April 12, 2024 10:59
# Conflicts:
#	app/src/main/java/ch/epfl/cs311/wanderwave/ui/screens/MapScreen.kt
Adapted tests
Finally solved all issues
Copy link

Copy link
Collaborator

@mbouaissi mbouaissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@IB-12 IB-12 requested review from joriba and removed request for joriba April 12, 2024 11:52
Copy link
Collaborator

@joriba joriba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IB-12 IB-12 merged commit 7e30c10 into main Apr 12, 2024
2 checks passed
@IB-12 IB-12 deleted the display-beacons-on-map branch April 12, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done in Sprint #3
Development

Successfully merging this pull request may close these issues.

Display beacons on map
5 participants