MapViewPlus
MapViewPlus copied to clipboard
How to show the selected pin image?
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.
Currently, MapViewPlus doesn't support this out of the box. Adding this to 0.2.0 milestone now.
@okhanokbay, thanks for coming up quickly! 👍