title: Leaflet: How to calculate distance from center point to the edges
body: <p>I am using leaflet draw control get geometries of certain areas. These geometries are polygons, line-string, rectangles and circles and I am putting them in a database.I want to get the distance from center point to the edges of these geometries.</p>
  
  <p><a href="https://i.stack.imgur.com/JGsNU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JGsNU.jpg" alt="enter image description here"></a></p>
  
  <p>I am using <a href="https://github.com/mapbox/leaflet-omnivore" rel="nofollow noreferrer">https://github.com/mapbox/leaflet-omnivore</a> to parse the geometry in this way:</p>
  
  <pre><code>var layer = omnivore.wkt.parse(geometry);
  var center = layer.getBounds().getCenter();
  </code></pre>
  
  <p>I don't know how to get distance from center to edges. Is it possible?</p>