在iOS中使GMSPolyline平滑 [英] Smooth GMSPolyline in iOS

查看:117
本文介绍了在iOS中使GMSPolyline平滑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Maps iOS SDK.当我在地图上绘制GMSPolyline时,它看起来并不平滑.如何制作更平滑的GMSPolyline或两个坐标之间的平滑线?

I am using Google Maps iOS SDK. When I draw a GMSPolyline in map, it does not look smooth. How can I make a smoother GMSPolyline or a smoother line between two coordinates?

推荐答案

我找到了解决方案.我正在使用1px的线条宽度.相反,现在我使用的是4px笔划宽度及其更平滑的效果.

I found the solution. I was using 1px stroke-width of line. Instead now I am using 4px stroke-width and its smoother.

这篇关于在iOS中使GMSPolyline平滑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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