Google Map Kit, draw polylines for walk like google map ios

I wants to draw polyline for walk like google map app in ios using google maps ios sdk. For more clear understanding i am uploading image that is from google map app(ios.)<img src="https://i.stack.imgur.com/npzVt.png" alt="enter image description here">


Are you asking how to achieve the dotted polyline effect? If so, I don't believe that is supported in the SDK.

You can manually create a similar effect with GMSCircles.

for(int x = 0; x < [self.path count]; x++) { CLLocationCoordinate2D coord = [self.path coordinateAtIndex:x]; //draw circle coord GMSCircle *circle = [GMSCircle circleWithPosition:coord radius:20]; circle.fillColor = [UIColor blueColor]; circle.strokeColor = [UIColor blackColor]; circle.strokeWidth = 2; circle.map = mapView; }

For this to really look like the original example you will probably need to add additional points onto the line in order for the circles to be evenly spaced out. For that you could do something like this.

for(all the points in the path) { if(the distance from pointA to pointB is > some distance) { centerPtr = center point of pointA and pointB insert centerPt in path } }

You can turn this into a simple recursive function that should give you something similar to what you are looking for.


  • Combining P values using Fisher method matlab?
  • How do I get narrow width and a large height on a RadioButtons widget, and still have round radio bu
  • Generic EditorTemplate for an Enum with Text Select Option Value
  • How can I compose a VM into a view within an Aurelia validation renderer
  • Add filter to clipped element in svg (combine clipPath and filter elements)
  • Chart js - Draw center of each bubbles of a bubble chart
  • Update data in d3.js group
  • Javascript syntax null : ?{}
  • angularjs ng-bind-html html input part missing
  • How do I properly code a javascript property and method using the 'prototype' function?
  • Circle movement upon rectangle Collision
  • Return null in boolean to checkbox state converter in XAML
  • Azure table query partial partitionkey guid match
  • SIP API media codecs
  • Does Apportable support to build library binary (.a/.so)?
  • How do I display a dialog that asks the user multi-choice questıon using tkInter?
  • how does System.Web.HttpRequest::PathInfo work?
  • Android application: how to use the camera and grab the image bytes?
  • Using a canvas object in a thread to do simple animations - Java
  • How to revert to previous XCode version?
  • how to avoid repetitive constructor in children
  • How to get Eclipse Oxygen to run on Java 9
  • Test if a set exists before trying to drop it
  • Chrome doesn't support silverlight anymore? How to solve this?
  • Spark fat jar to run multiple versions on YARN
  • Get object from AWS S3 as a stream
  • ActionScript 2 vs ActionScript 3 performance
  • Comma separated Values
  • json Serialization in asp
  • Error creating VM instance in Google Compute Engine
  • Hits per day in Google Big Query
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • how does django model after text[] in postgresql [duplicate]
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Sorting a 2D array using the second column C++
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • UserPrincipal.Current returns apppool on IIS
  • java string with new operator and a literal