Customize map view

The default behavior of the Consumer Tracking experience is to show a smooth and accurate animation experience with auto-set bounds on the User's location and the Expected Place. This way, as the user moves closer to the Expected Place, the zoom level increases.

If your use-case requires a different behavior, you can use the following methods.

Methods Description
showAddressViewForActionID(map: HTMap, actionID: String) -> Bool To show/hide the address view on Hypertrack map.
showInfoViewForActionID(map: HTMap, actionID: String) -> Bool To show/hide the info view on Hypertrack map.
showTrafficForMapView(map: HTMap) -> Bool To show/hide the Traffic layer on Hypertrack map.
showReFocusButton(map: HTMap) -> Bool To show/hide the refocus button on Hypertrack map.
showBackButton(map: HTMap) -> Bool To show/hide the back button on Hypertrack map.
initialCoordinatesFor(map: HTMap) -> CLLocationCoordinate2D To set initial position for Hypertrack map.
class MapViewController: UIViewController, HTViewCustomizationDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()

        ...

        // Configure view customization delegate in HyperTrack map
        hyperTrackMap.setHTViewCustomizationDelegate(customizationDelegate: self)
    }

    func showInfoViewForActionID(map: HTMap, actionID: String) -> Bool {
        return false
    }

    ...
}

Was this helpful? Yes, thanks! Not really

results matching ""

    No results matching ""