0

I tried to draw a Circle in OpenLayers 6+. It works perfectly but I would like to display the radius line as it was displayed in OpenLayers 3 (see the bellow example):

http://tsauerwein.github.io/ol3/animation-flights/examples/draw-features.html

Circle with radius

In OpenLayers 6 it draws the circle without this radius :

enter image description here

You can test it here : https://openlayers.org/en/latest/examples/draw-features.html

I was wondering if there is a simple way to display it because I did not found in the documentation. I've take a look here (Circle class) and here (Circle style) without finding something that could help. I am sure there is a hard way to do this (adding a linestring layer and draw it dynamically... but I would be sure before that I am not missing something here)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.