I'm trying to create a dotted Polyline
based on the code I found here - third answer. I came up with this:
// route
let path = GMSMutablePath()
// populate path with coordinates here
// ...
let route = GMSPolyline(path: path)
route.strokeWidth = 3.0
let styles = [GMSStrokeStyle.solidColor(UIColor(red: 0.945, green: 0.392, blue: 0.278, alpha: 1.0)), GMSStrokeStyle.solidColor(UIColor.clearColor())]
let lengths = [10,10]
route.spans = GMSStyleSpans(route.path!, styles, lengths, kGMSLengthRhumb);
route.map = m_map_view
I get a unresolved identifier
error though, as kGMSLengthRhumb
is not identified as some valid constant in my system. I am using Swift 2.0.
Where is kGMSLengthRhumb
or what should I put instead there?