Change the location of the blue sphere

Move the blue sphere to a different point on the map.

<!DOCTYPE HTML>
<html>
  <head>
    <script src="https://unpkg.com/wrld.js@1.x.x"></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 = Wrld.map("map", "your_api_key_here", {
        center: [56.459721, -2.977541],
        zoom: 18
      });

      var initialBlueSphereLocation = Wrld.latLng(56.459811, -2.977928);
      var alteredBlueSphereLocation = Wrld.latLng(56.459675, -2.977205);
      var locationToggle = false;

      function onInitialStreamingComplete() {
        map.blueSphere.setEnabled(true);
        map.blueSphere.setLocation(initialBlueSphereLocation);
        setInterval(function() {
          locationToggle = !locationToggle;
          map.blueSphere.setLocation(locationToggle ? alteredBlueSphereLocation : initialBlueSphereLocation);
        }, 2000);
      }

      map.on("initialstreamingcomplete", onInitialStreamingComplete);
    </script>
  </div>
  </body>
</html>
v1.1.0