Permalink
Browse files

- fix getExtent

  • Loading branch information...
1 parent 0914069 commit 6b77109bce60747ea2ffe434e123a077e9024cea Nate Irwin committed Mar 15, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 modestmaps.js
View
@@ -2592,9 +2592,14 @@ var MM = com.modestmaps = {
// inspecting
getExtent: function() {
+ var nw = this.pointLocation(new MM.Point(0, 0)),
+ se = this.pointLocation(this.dimensions);
+
return new MM.Extent(
- this.pointLocation(new MM.Point(0, 0)),
- this.pointLocation(this.dimensions)
+ nw.lat,
+ nw.lon,
+ se.lat,
+ se.lon
);
},

0 comments on commit 6b77109

Please sign in to comment.