lib/ProMotion/map/map_screen_module.rb in ProMotion-1.0.4 vs lib/ProMotion/map/map_screen_module.rb in ProMotion-1.1.0.rc1

- old
+ new

@@ -98,13 +98,18 @@ identifier = annotation.annotation_params[:identifier] if view = mapView.dequeueReusableAnnotationViewWithIdentifier(identifier) view.annotation = annotation else #Set the pin properties - view = MKPinAnnotationView.alloc.initWithAnnotation(annotation, reuseIdentifier:identifier) + if annotation.annotation_params[:image] + view = MKAnnotationView.alloc.initWithAnnotation(annotation, reuseIdentifier:identifier) + view.image = annotation.annotation_params[:image] + else + view = MKPinAnnotationView.alloc.initWithAnnotation(annotation, reuseIdentifier:identifier) + view.animatesDrop = annotation.annotation_params[:animates_drop] + view.pinColor = annotation.annotation_params[:pin_color] + end view.canShowCallout = annotation.annotation_params[:show_callout] - view.animatesDrop = annotation.annotation_params[:animates_drop] - view.pinColor = annotation.annotation_params[:pin_color] end view end def set_start_position(params={})