ios - how to create a dotted polyline in Google Maps with swift 2.0 -
i've tried question has relevant objc code, swift2.0 version produces dashed (and not dotted) lines. code:
let path = // ... define path here let route = gmspolyline(path: path) route.strokewidth = 4.0 let styles = [gmsstrokestyle.solidcolor(uicolor(red: 0.945, green: 0.392, blue: 0.278, alpha: 1.0)), gmsstrokestyle.solidcolor(uicolor.clearcolor())] let lengths = [15,15] route.spans = gmsstylespans(route.path!, styles, lengths, gmslengthkind(rawvalue: 1)!); route.map = m_map_view
Comments
Post a Comment