Adds image param to MapScreen annotation data

This commit is contained in:
Ad Taylor
2013-08-02 14:45:03 +01:00
parent 9a83b6060c
commit da058d5043

View File

@@ -103,7 +103,11 @@ module ProMotion
view = MKPinAnnotationView.alloc.initWithAnnotation(annotation, reuseIdentifier:identifier)
view.canShowCallout = annotation.annotation_params[:show_callout]
view.animatesDrop = annotation.annotation_params[:animates_drop]
view.pinColor = annotation.annotation_params[:pin_color]
if annotation.annotation_params[:image]
view.image = annotation.annotation_params[:image]
else
view.pinColor = annotation.annotation_params[:pin_color]
end
end
view
end