code: public double[] getMapBounds() {
          BoundingBox bb = mapDataStore.boundingBox();
          double[] nswe = new double[4];
          nswe[0] = bb.maxLatitude;
          nswe[1] = bb.minLatitude;
          nswe[2] = bb.minLongitude;
          nswe[3] = bb.maxLongitude;
          return nswe;
      }
docs: Get lat/lon bounds of map.
  
  @return the bounds as [n,s,w,e].