Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- fix getExtent

  • Loading branch information...
commit 6b77109bce60747ea2ffe434e123a077e9024cea 1 parent 0914069
@nateirwin nateirwin authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 modestmaps.js
View
9 modestmaps.js
@@ -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
);
},
Please sign in to comment.
Something went wrong with that request. Please try again.