Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

How to remove that triangle below the CalloutView? #2

Closed
hemangshah opened this issue Mar 13, 2018 · 2 comments
Closed

How to remove that triangle below the CalloutView? #2

hemangshah opened this issue Mar 13, 2018 · 2 comments

Comments

@hemangshah
Copy link

extension KiosksViewController: AnchorViewCustomizerDelegate {
    func mapView(_ mapView: MapViewPlus, fillColorForAnchorOf calloutView: CalloutViewPlus) -> UIColor {
        return UIColor.black.withAlphaComponent(0.0)
    }
}

Doing this showing a full black triangle. I can set the various colors but can't set the clear color.

How to hide it completely?

@okhanokbay
Copy link
Owner

Please try setting the height of it to zero like below. Works for me. @hemangshah

public func mapView(_ mapView: MapViewPlus, heightForAnchorOf calloutView: CalloutViewPlus) -> CGFloat {
    return 0
}

@okhanokbay
Copy link
Owner

Please re-open if there is anything else about this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants