wrld.js

Adding a Leaflet circle

Add a Leaflet circle to a map.

<!DOCTYPE HTML>
<html>
  <head>
    <script src="https://cdn-webgl.wrld3d.com/wrldjs/dist/latest/wrld.js"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.1/leaflet.css" rel="stylesheet" />
  </head>
  
  <body>
  <div style="position: relative">
    <div id="map" style="height: 400px"></div>
    <script>
      var map = L.Wrld.map("map", "your_api_key_here", {
        center: [37.786542, -122.386022],
        zoom: 17
      });

      var circle = L.circle([37.786542, -122.386022], {
          color: 'red',
          fillColor: '#f03',
          fillOpacity: 0.5,
          radius: 50.0
      }).addTo(map);        
    </script>
  </div>
  </body>
</html>
v0.1.1452