Permalink
Browse files

Version 2.0.1 with negative coordinate wrapping fix

  • Loading branch information...
tmcw committed Jun 19, 2012
1 parent fba290c commit 5d47c573e124a508683f2f8e0d63e79ea4915e4a
Showing with 9 additions and 6 deletions.
  1. +3 −0 CHANGELOG
  2. +2 −2 modestmaps.js
  3. +2 −2 modestmaps.min.js
  4. +1 −1 package.json
  5. +1 −1 src/start.js
View
@@ -8,6 +8,9 @@ Following the semantic versioning recommendation best we can:
minor version, and backwards incompatible API changes increment
the major version." -- http://semver.org/
+v2.0.1
+- Fixing negative coordinate wrapping, identified at https://github.com/mapbox/tilemill/issues/1395
+
v2.0.0
- Two breaking changes:
- requesterror now calls its callbacks with the img element, like
View
@@ -1,5 +1,5 @@
/*!
- * Modest Maps JS v2.0.0
+ * Modest Maps JS v2.0.1
* http://modestmaps.com/
*
* Copyright (c) 2011 Stamen Design, All Rights Reserved.
@@ -756,7 +756,7 @@ var MM = com.modestmaps = {
wrappedColumn;
if (coord.column < 0) {
- wrappedColumn = (coord.column + columnSize) % columnSize;
+ wrappedColumn = ((coord.column % columnSize) + columnSize) % columnSize;
} else {
wrappedColumn = coord.column % columnSize;
}
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
{
"name": "modestmaps",
"description": "a display and interaction library for tile-based maps",
- "version": "2.0.0",
+ "version": "2.0.1",
"author": {
"name": "Tom Carden",
"email": "tom@tom-carden.co.uk",
View
@@ -1,5 +1,5 @@
/*!
- * Modest Maps JS v2.0.0
+ * Modest Maps JS v2.0.1
* http://modestmaps.com/
*
* Copyright (c) 2011 Stamen Design, All Rights Reserved.

0 comments on commit 5d47c57

Please sign in to comment.