Tuesday, 14 January 2020

curvature - Using cubiccurve in OpenLayers 2?


I want to use cubiccurve in openlayers 2.13, And I have added the necessary files, But when drawing the line is drawn instead of the curve.


Files are available on the website: http://trac.osgeo.org/openlayers/ticket/1715#no1


Drawing curve is very important for us and I no way I could control my curve.


Can one help me?



Answer



You can use bezier Curves algorithm. Bezier algorithm convert broken line to smooth line.


Use the following example:







Ya Mahdi









No comments:

Post a Comment