如何使图钉在Google地图中显示更大? [英] how to make the pin show bigger in Google map?

查看:94
本文介绍了如何使图钉在Google地图中显示更大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何属性都可以将Google地图中的图钉设置得更大些吗?据我了解,MKPinAnnotationView类仅提供了很少的属性,而与设置自定义管脚的大小无关.

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.

有任何想法请帮助.

预先感谢

推荐答案

由于MKPinAnnotationViewUIView的子类,我相信您可以显式设置其框架.

As MKPinAnnotationView is a subclass of UIView I believe you can explicitly set its frame.

作为替代方案,您可以对视图应用CGAffineTransform来适当缩放它.

As an alternative you can apply CGAffineTransform to your view to scale it appropriately.

pinView.transform = CGAffineTransformMakeScale(2.0, 2.0);

这篇关于如何使图钉在Google地图中显示更大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆