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.

i have this: enter image description here.

but want make this:

enter image description here

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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -