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

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...