Permalink
Browse files

reinstated child display for missing tiles

  • Loading branch information...
1 parent 1b3a646 commit fa1c2ef13eec994fbbb18ada3d77c49fbdb631da @RandomEtc RandomEtc committed Feb 8, 2011
Showing with 12 additions and 10 deletions.
  1. +4 −0 CHANGELOG
  2. +3 −4 modestmaps.js
  3. +2 −2 modestmaps.min.js
  4. +2 −3 src/map.js
  5. +1 −1 src/start.js
View
@@ -8,6 +8,10 @@ Following the semantic versioning recommendation best we can:
minor version, and backwards incompatible API changes increment
the major version." -- http://semver.org/
+v0.14.1
+ - reinstated display of children for missing tiles, except when if
+ map.enablePyramidLoading is set to true
+
v0.14.0
- added map.enablePyramidLoading flag for pyramid loading (off by default)
- fixed Coordinate.prototype.toKey (back to string join to avoid collisions)
View
@@ -1,5 +1,5 @@
/*!
- * Modest Maps JS v0.14.0
+ * Modest Maps JS v0.14.1
* http://modestmaps.com/
*
* Copyright (c) 2010 Stamen Design, All Rights Reserved.
@@ -1412,7 +1412,6 @@ if (!com) {
if (this.enablePyramidLoading) {
// mark all parent tiles valid
validTileKeys[parentKey] = true;
- tileCovered = true;
var parentLayer = this.createOrGetLayer(parentCoord.zoom);
//parentLayer.coordinate = parentCoord.copy();
if (parentKey in this.tiles) {
@@ -1438,7 +1437,7 @@ if (!com) {
}
// if we didn't find a parent, look at the children:
- /*if (!tileCovered) {
+ if (!tileCovered && !this.enablePyramidLoading) {
var childCoord = tileCoord.zoomBy(1);
// mark everything valid whether or not we have it:
validTileKeys[childCoord.toKey()] = true;
@@ -1448,7 +1447,7 @@ if (!com) {
validTileKeys[childCoord.toKey()] = true;
childCoord.column -= 1;
validTileKeys[childCoord.toKey()] = true;
- }*/
+ }
}
}
}
Oops, something went wrong.

0 comments on commit fa1c2ef

Please sign in to comment.