MapViewPlus icon indicating copy to clipboard operation
MapViewPlus copied to clipboard

How to show the selected pin image?

Open hemangshah opened this issue 6 years ago • 2 comments

I have a requirement for which I need to show a different annotation image when an annotation is selected. How can I do that?

extension KiosksViewController: MapViewPlusDelegate {   
    func mapView(_ mapView: MapViewPlus, imageFor annotation: AnnotationPlus) -> UIImage {        
        return UIImage(named: "map_pin")!
    }
}

Right now, I am showing an image like this.

hemangshah avatar Mar 13 '18 12:03 hemangshah

Currently, MapViewPlus doesn't support this out of the box. Adding this to 0.2.0 milestone now.

okhanokbay avatar Mar 13 '18 13:03 okhanokbay

@okhanokbay, thanks for coming up quickly! 👍

hemangshah avatar Mar 14 '18 05:03 hemangshah