Tag: 谷歌折线

ios Google SDK Map不能创build虚线多段线

我已经调用下面的方法来绘制标记之间的虚线折线。 当涉及到执行时,它显示只绘制实线。 您能否告诉我如何在Google Map上绘制虚线? – (void) createDashedLine:(CLLocationCoordinate2D )thisPoint:(CLLocationCoordinate2D )nextPoint: (UIColor *)colour { NSLog(@"next pt latitude %ff" , nextPoint.latitude); NSLog(@"next pt longitude %ff" , nextPoint.longitude); NSLog(@"this pt laatitude %ff" , thisPoint.latitude); NSLog(@"this pt longitude %ff" , thisPoint.longitude); double difLat = nextPoint.latitude – thisPoint.latitude; double difLng = nextPoint.longitude – thisPoint.longitude; double scale = camera.zoom * 2; double […]

在iOS中的GMSMapView上绘制两个地方之间的路线

我正在开发一个iOS应用程序。 在那个应用程序中,我有2个字段从和。 我使用Google自动完成APIinput地址,同时我也能够获取2个位置的经度和纬度 ,并且能够在GMSMapView上显示标记。 现在我想在这两个地方之间画出路线。 当我们使用MKMapView时,我find了一个解决scheme。 但我无法findGMSMapView的解决scheme。 请帮我在GMSMapView绘制这两个点之间的路线。 如果可能的话请给我一些重要的链接。 谢谢。