-
Notifications
You must be signed in to change notification settings - Fork 3
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
Plan map #81
Conversation
- use google LatLng instead of Geodesy LatLng in the global area - if we need geodesy LatLng, convert google LatLng with GoogleGeodesyLatLngAdapter
- test updatePolyline - test getter of polyline
Implement plan marker with extending existing marker list
}, | ||
child: PlanMakeHome(), | ||
return ChangeNotifierProvider.value( | ||
value: calendarHandler, |
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.
엄청 trivial 한거긴 한데 someFunc.call() 처럼 calendarHandler.inherit() 으로 표시해서 다음 View로 이 model을 넘길거다 라는걸 표시해주는걸 제안해봅니다!
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.
반영하겠습니다!
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.
다른 View로 모델을 넘길 때는 inherit으로 표시하자는 말씀이시죠?
import 'package:prototype2021/theme/calendar/plan_list_item.dart'; | ||
import 'package:prototype2021/theme/calendar/plan_list_item/middle_divider.dart'; | ||
import 'package:prototype2021/theme/calendar/schedule_card.dart'; | ||
|
||
mixin PlanListItemDataHandlerMixin on State<PlanListItem> { | ||
final Geodesy _geodesy = new Geodesy(); | ||
final Geodesy.Geodesy _geodesy = new Geodesy.Geodesy(); |
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.
이런식으로 네임스페이스를 만들어서 처리하신 이유가 궁금합니다 :)
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.
현재 저희 어플리케이션에서는 Google Map의 LatLng과 Geodesy의 LatLng을 함께 사용하고 있습니다.
두 클래스가 혼용되면 같은 곳에서 두가지를 사용할 수 없거나, 실수로 인한 버그가 발생하기 쉬우므로 둘 중 하나를 표준으로 정하는 것이 좋다고 생각했습니다. LatLng이 쓰이는 경우는 대부분이 map과 관련된 general한 case이고, Geodesy LatLng이 사용되는 경우는 특수한 case이기 때문에 GoogleMap 패키지를 표준으로 택하는 것이 용이하다고 판단했습니다.
현재는 Adapter를 활용해 Geodesy와 GoogleMap이 완전히 분리되어 있어 Geodesy namespace가 불필요하게 느껴질 수 있지만, 만약 다른 사람이 Geodesy가 namespace 없이 import 되어 있는 환경에 Google LatLng을 import 하여 사용한다면 LatLng이 서로 혼동되는 상황이 발생할 것입니다. 이러한 이유로 표준이 아닌 클래스를 포함하고 있는 패키지를 namespace를 활용하여 import 하였습니다.
@@ -21,7 +23,11 @@ class BackgroundMap extends StatefulWidget { | |||
this.onCameraMove, | |||
this.onTap, | |||
this.initialCameraPosition, | |||
}); | |||
this.zoom = 18.0, | |||
polylines, |
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.
polylines를 굳이 late로 지정해둔 이유가 있나요?? this.polylines = {};
이런 식으로도 가능하지 않을까 싶습니다!
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.
어... 이쪽은 제가 코드를 졸면서 짠 것 같네요ㅋㅋㅋㅋㅋ 수정하겠습니다
수정 완료했습니다! |
Description
PlanDetailView와 PlanCalendarView에 들어가는 Plan Map 구현을 완료하였습니다.
구현하였습니다.
Refactoring
General
MemoDialog
GoogleGeodesyLatLngAdapter
Implementations
PlanMakeHomeHeaderMixin
PlanMap
PlanMakeCalendarModel
PlanMapModel
PlanMarkerList
PlanMapModelTest
IndexLocation
Issue Tracking