Reputation:
any property can set the pin in google map bigger? from what i know, MKPinAnnotationView class only provided few properties but not any related to set custom pin size.
Pls help if have any idea.
Thanks in advance
Upvotes: 1
Views: 2111
Reputation: 919
Just change the size of the frame in the pinView:
[pinView setFrame:CGRectMake(0, 0, 33, 33)];
Upvotes: 0
Reputation: 170849
As MKPinAnnotationView
is a subclass of UIView
I believe you can explicitly set its frame.
As an alternative you can apply CGAffineTransform to your view to scale it appropriately.
pinView.transform = CGAffineTransformMakeScale(2.0, 2.0);
Upvotes: 2