[英]How to add an overlay to Google Maps API in Xcode
I was wondering how I can add lines to a Google Maps API for Xcode. 我想知道如何为Xcode的Google Maps API添加行。
You can see here that Google added a purple dotted line along a road which can be clicked on for further details. 您可以在此处看到Google在一条道路上添加了一条紫色虚线,可以单击该虚线以获取更多详细信息。
Is this possible in Xcode and how do I do this? Xcode中有可能吗?我该怎么做?
The Maps SDK for IOS allows you to add Polylines to draw lines on a Google map which you can then customize to make it have a similar look to the line shown in the image you've posted. 使用适用于IOS的Maps SDK,您可以添加折线以在Google地图上绘制线,然后可以对其进行自定义以使其具有与发布图像中显示的线相似的外观。
Hope this helps you get started! 希望这可以帮助您入门!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.