How to draw polygon with radius around polyline in ios swift -
i have problem drawing polygon around polyline(( have coordinates polyline , want buffer coordinates coordinates of polygon around polyline.
but want make this:
please help...
you can draw 2 polylines same path.
let's you've created variable thepath
buffered coordinates. you've created polyline path.
let redpolyline = gmspolyline() redpolyline.path = thepath redpolyline.map = mapview
create one.
let redpolyline = gmspolyline() redpolyline.path = thepath redpolyline.strokewidth = 6.0 // change accordingly redpolyline.strokewidth = uicolor.redcolor().colorwithalphacomponent(0.5) // change accordingly redpolyline.map = mapview
remember redpolyline's zindex
should higher bluepolyline because can see in image you've provided, redpolyline on top of other one.
Comments
Post a Comment