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.

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.
showCallButton(map: HTMap) -> Bool To show/hide the call button on action's info view at the bottom.
initialCoordinatesFor(map: HTMap) -> CLLocationCoordinate2D To set initial position for Hypertrack map.
heroMarkerImageForActionID(map: HTMap, actionID: String) -> UIImage To customize HeroMarker Image for an actionId.
heroMarkerViewForActionID(map: HTMap, actionID: String) -> MKAnnotationView To customize HeroMarker AnnotationView for an actionId.
expectedPlaceMarkerImageForActionID(map: HTMap, actionID: String) -> UIImage To customize ExpectedPlaceMarker Image for an actionId.
expectedPlaceMarkerViewForActionID(map: HTMap, actionID: String) -> MKAnnotationView To customize ExpectedPlaceMarker AnnotationView for an actionId.
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
    }

    ...
}
@interface MapViewController() <HTViewCustomizationDelegate>

...

@end

@implementation MapViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    ...

    // Configure view customization delegate in HyperTrack map
    [map setHTViewCustomizationDelegateWithCustomizationDelegate:self];

    ...
}

- (BOOL) showInfoViewForActionIDWithMap:(HTMap *)map actionID:(NSString *)actionID {
    return false;
}

...

@end

results matching ""

    No results matching ""