Skip to content

Setting Image Using setImage removed the pulse #18

Open

Description

@vicky1787

Hello,

I want to use your animation effect with my custom Image as current location Image.

If I am giving your setImage: call then the pulsing is not seen around my image, Can you advice. I am also using ur Pods as instructed.

Activity

  1. vicky1787 commented on Mar 21, 2016

    @vicky1787
    Author

    This is code I used
    img_5134

     if (annotation == mapView.userLocation)
        {
        static NSString *identifier = @"MyLocation";
        SVPulsingAnnotationView *pulsingView = (SVPulsingAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:identifier];
    
        if(pulsingView == nil) {
            pulsingView = [[SVPulsingAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:identifier];
            pulsingView.annotationColor = [UIColor colorWithRed:0.678431 green:0 blue:0 alpha:1];
            [pulsingView setImage:[UIImage imageNamed:@"location-pointer"]];//here we use a nice image instead of the default pins
            pulsingView.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
        }
        pulsingView.canShowCallout = YES;
        return pulsingView;
    

    }

  2. vicky1787 commented on Mar 21, 2016

    @vicky1787
    Author

    Although now it pulse but the image is filled with this , i also try to remove the annotation color code but then its white, come how the image i not applied intermittently.

  3. vicky1787 commented on Mar 21, 2016

    @vicky1787
    Author

    I am setting this in your Demo app still the same issue.
    simulator screen shot 21 mar 2016 4 44 09 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions