Commit b0f515e8 authored by Scott Ames's avatar Scott Ames
Browse files

fixed center method

parent e5b694b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ export default L.Map.AstroMap = L.Map.extend({
   *
   * @return {LatLng} The center coordinates of the map.
   */
  getCenter: function() {
  center: function() {
    return this.options.center;
  }
});
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ export default L.Control.ViewCenter = L.Control.extend({
      link,
      "click",
      function() {
        map.setView(map.getCenter(), map.getZoom());
        map.setView(map.center(), map.getZoom());
      },
      map
    );