how to make the pin show bigger in Google map?

我只是一个虾纸丫 提交于 2019-12-11 08:35:24

问题


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


回答1:


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);



回答2:


Just change the size of the frame in the pinView:

[pinView setFrame:CGRectMake(0, 0, 33, 33)];


来源:https://stackoverflow.com/questions/2442656/how-to-make-the-pin-show-bigger-in-google-map

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!