Skip to content

Commit

Permalink
Fixed ALS-1560 directions button
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanmakeen committed Jul 24, 2023
1 parent 9a8a587 commit 38c7718
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ extension ExploreCoordinator: ExploreNavigationDelegate {
controller.presentBottomSheet(parentController: ExploreCoordinator.exploreController!)
let minHeight = 0.69
controller.enableBottomSheetGrab(smallHeight: minHeight, mediumHeight: minHeight)

NotificationCenter.default.post(name: Notification.updateMapLayerItems, object: nil, userInfo: ["height": controller.getMediumDetentHeight()])
currentBottomSheet = controller
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ extension ExploreVC {
NotificationCenter.default.addObserver(self, selector: #selector(updateMapViewValue(_:)), name: Notification.Name("UpdateMapViewValues"), object: nil)


NotificationCenter.default.addObserver(self, selector: #selector(dismissNavigationScene(_:)), name: Notification.Name("DirectionViewDismissed"), object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(dismissDirectionScene(_:)), name: Notification.Name("DirectionViewDismissed"), object: nil)


NotificationCenter.default.addObserver(self, selector: #selector(refreshMapView(_:)), name: Notification.refreshMapView, object: nil)
Expand Down Expand Up @@ -426,6 +426,12 @@ extension ExploreVC {
mapNavigationView.isHidden = true
mapNavigationActionsView.isHidden = true
//updateAmazonLogoPositioning(isBottomNavigationShown: false)
exploreView.hideGeoFence(state: false)
exploreView.deleteDrawing()
}

@objc private func dismissDirectionScene(_ notification: Notification?) {
viewModel.deactivateRoute()
exploreView.hideDirectionButton(state: false)
exploreView.hideGeoFence(state: false)
exploreView.hideMapStyleButton(state: false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ extension DirectionVC: UITableViewDataSource {
"DestinationLocation": destinationLocation,
"routeType": routeType]
NotificationCenter.default.post(name: Notification.Name("DirectionLineString"), object: nil, userInfo: datas)
NotificationCenter.default.post(name: Notification.Name("updateMapViewButtons"), object: nil, userInfo: nil)
//NotificationCenter.default.post(name: Notification.Name("updateMapViewButtons"), object: nil, userInfo: nil)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ final class NavigationHeaderView: UIView {
}

routeVisibilityButton.snp.makeConstraints {
$0.width.equalTo(110).priority(999)
$0.width.equalTo(90).priority(999)
}

exitButton.snp.makeConstraints {
Expand Down

0 comments on commit 38c7718

Please sign in to comment.