In Maps, Drawing Geometry… How draw a circle ?
Hi!!, just not to forget
Could you please clarify, whether you mean interactive drawing a circle on a map or simply adding it to a map programmatically? If the first, then unfortunately the addon currently doesn’t provide means for drawing circles. But if you want to add it programmatically, you can access the internal Leaflet component and add a circle on it. Here is an example:
import io.jmix.mapsui.widget.leaflet.LCircle; import io.jmix.mapsui.widget.leaflet.LMap; ... LMap leafletMap = geoMap.unwrap(LMap.class); LCircle lCircle = new LCircle(55.78404, 54.06897, 1000); leafletMap.addLayer(lCircle);
Thank Gleb for answer.
Yes, it the first.
The example is the solution for my case.