Permalink
Browse files

Use window.top in all map clients.

  • Loading branch information...
1 parent 0312066 commit 9b4271141242b5926ade705d0bbc5381e380ea8d Will White committed Oct 12, 2011
View
@@ -145,7 +145,7 @@ wax.g.interaction = function(map, tilejson, options) {
this.callbacks.click(feature, map.getDiv(), 0, evt);
break;
case 'location':
- window.location = feature;
+ window.top.location = feature;
break;
}
}
@@ -14,7 +14,7 @@ wax.leaf.interaction = function(map, tilejson, options) {
addListener = L.DomEvent.addListener,
removeListener = L.DomEvent.removeListener,
clickHandler = options.clickHandler || function(url) {
- window.location = url;
+ window.top.location = url;
},
interaction = {},
_downLock = false,
@@ -137,7 +137,7 @@ wax.ol.Interaction =
that.callbacks.click(feature, tiles[t].layer.map.viewPortDiv, t);
break;
case 'location':
- window.location = feature;
+ window.top.location = feature;
break;
}
}
View
@@ -1,4 +1,4 @@
-/* wax - 3.1.0 - 1.0.4-422-gc929616 */
+/* wax - 3.1.0 - 1.0.4-422-g0312066 */
/*!
@@ -1203,7 +1203,7 @@ wax.g.interaction = function(map, tilejson, options) {
this.callbacks.click(feature, map.getDiv(), 0, evt);
break;
case 'location':
- window.location = feature;
+ window.top.location = feature;
break;
}
}
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 3.1.0 - 1.0.4-422-gc929616 */
+/* wax - 3.1.0 - 1.0.4-422-g0312066 */
/*!
@@ -981,7 +981,7 @@ wax.leaf.interaction = function(map, tilejson, options) {
addListener = L.DomEvent.addListener,
removeListener = L.DomEvent.removeListener,
clickHandler = options.clickHandler || function(url) {
- window.location = url;
+ window.top.location = url;
},
interaction = {},
_downLock = false,
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 3.1.0 - 1.0.4-422-gc929616 */
+/* wax - 3.1.0 - 1.0.4-422-g0312066 */
/*!
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 3.1.0 - 1.0.4-422-gc929616 */
+/* wax - 3.1.0 - 1.0.4-422-g0312066 */
/*!
@@ -1133,7 +1133,7 @@ wax.ol.Interaction =
that.callbacks.click(feature, tiles[t].layer.map.viewPortDiv, t);
break;
case 'location':
- window.location = feature;
+ window.top.location = feature;
break;
}
}
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 9b42711

Please sign in to comment.