-
Notifications
You must be signed in to change notification settings - Fork 4
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
New Search UI #55
New Search UI #55
Conversation
6d79871
to
0bae362
Compare
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ahmedhossamdev I think this is looking great! The one big change I'd like to see here is for you to move the switch
driven logic for determining behavior depending on Google Maps or OSM into the map provider files GoogleMapProvider.js and OpenStreetMapProvider.js using a common 'interface'.
src/components/map/MapView.svelte
Outdated
if (showRoute && selectedRoute) { | ||
if (selectedRoute && !showRoute) { | ||
allStops = []; | ||
// Add stops to show |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment still relevant? in other words, does it reflect a change that still needs to be made, or can the comment just be deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be deleted now, but I was thinking that instead of deleting all the stops, we should keep the state of the stops before the search so that when the user finishes the search, the stops reappear. However, I was also considering that we will have a cache, so this shouldn't be a problem.
Nice idea; I will refactor it |
…he unused mapSource variable
…eatePolyline function from googleMaps file
Hello @aaronbrethorst, I’ve encapsulated everything in the code now. The stop markers and info windows are properly managed within the GoogleMapProvider and OpenStreetProvider classes. Both adding and removing stop markers, as well as handling the info windows, are now fully self-contained. Please feel free to review and let me know if there’s anything else you’d like to adjust. |
@Ahmedhossamdev I see a couple merge conflicts on this PR. Can you resolve them? Let me know if I can help you with that. |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work!
Remaining Tasks