-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
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.
The "mapboxgl-ctrl-geolocate" button has an inconsistent position when going back from roadmap preview
@@ -22,9 +20,18 @@ export default class DirectionPanel { | |||
this.origin = null | |||
this.destination = null | |||
this.vehicle = this.vehicles.DRIVING | |||
this.roadMapPanel = new RoadMapPanel() | |||
this.roadMapPanel = new RoadMapPanel(this) |
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.
Would it be possible to register a callback instead of passing this
? I find a bit dangerous to let roadMapPanel handle the instance
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.
I mean, a callback to handle a close event for instance
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.
good question, i find it more elegant than register callback and let the panel handle his own close method.
3695af3
to
e858956
Compare
No description provided.