Create circular polygon

Create circular polygon

Simple Map Cercalia

main.js
var radius = 1111300;
var map = new cercaliagl.Map({
  target: 'map'
});
map.whenReady(function () {
  var geomCircle1 = cercaliagl.util.createCircleGeometry(new cercaliagl.LonLat(1.1676800, 36.8204600), radius);
  var geomCircle2 = cercaliagl.util.createCircleGeometry(new cercaliagl.LonLat(1.1676800, 0.8204600), radius);
  var geomCircle3 = cercaliagl.util.createCircleGeometry(new cercaliagl.LonLat(1.1676800, -36.8204600), radius);
  var feature1 = new cercaliagl.Feature({
    geometry: geomCircle1
  });
  var feature2 = new cercaliagl.Feature({
    geometry: geomCircle2
  });
  var feature3 = new cercaliagl.Feature({
    geometry: geomCircle3
  });
  map.addFeature(feature1);
  map.addFeature(feature2);
  map.addFeature(feature3);
  map.centerToFeatures([feature1, feature2, feature3]);
});
index.html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Create circular polygon</title>
    <style>
      .map {
        width: 100%;
        height: 640px;
      }
    </style>
  </head>
  <body>
    <div id="map" class="map"></div>
    
    <link rel="stylesheet" type="text/css" href="//maps.cercalia.com/gl/v1.0/cercaliagl.css">
    <script src="//maps.cercalia.com/gl/v1.0/cercaliagl.js?key=YOUR_API_KEY"></script>
    <script src="main.js"></script>
  </body>
</html>