Permalink
Browse files

Version 6.2.0, add wax.location()

  • Loading branch information...
1 parent 1182501 commit fdba7ab6ac9b77632eb5ae9395ea0efe37528a58 @tmcw tmcw committed Jun 13, 2012
Showing with 186 additions and 19 deletions.
  1. +5 −0 CHANGELOG.md
  2. +28 −1 dist/wax.esri.js
  3. +2 −2 dist/wax.esri.min.js
  4. +28 −1 dist/wax.g.js
  5. +2 −2 dist/wax.g.min.js
  6. +28 −1 dist/wax.leaf.js
  7. +2 −2 dist/wax.leaf.min.js
  8. +28 −1 dist/wax.mm.js
  9. +2 −2 dist/wax.mm.min.js
  10. +28 −1 dist/wax.ol.js
  11. +2 −2 dist/wax.ol.min.js
  12. +28 −1 dist/wax.p.js
  13. +2 −2 dist/wax.p.min.js
  14. +1 −1 package.json
View
@@ -1,5 +1,10 @@
## Changelog
+## 6.2.0
+
+* Add `wax.location()` - a `wax.tooltip()` API function that lets
+ you use the `__location__` formatter in interaction.
+
## 6.1.0
* Add Leaflet legend - currently the same API as Modest Maps.
View
@@ -1,4 +1,4 @@
-/* wax - 6.1.0 - 1.0.4-586-gb6bb974 */
+/* wax - 6.2.0 - 1.0.4-587-g1182501 */
!function (name, context, definition) {
@@ -2551,6 +2551,33 @@ wax.legend = function() {
return legend.add();
};
var wax = wax || {};
+
+wax.location = function() {
+
+ var t = {};
+
+ function on(o) {
+ console.log(o);
+ if ((o.e.type === 'mousemove' || !o.e.type)) {
+ return;
+ } else {
+ var loc = o.formatter({ format: 'location' }, o.data);
+ if (loc) {
+ window.location.href = loc;
+ }
+ }
+ }
+
+ t.events = function() {
+ return {
+ on: on
+ };
+ };
+
+ return t;
+
+};
+var wax = wax || {};
wax.movetip = {};
wax.movetip = function() {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.1.0 - 1.0.4-586-gb6bb974 */
+/* wax - 6.2.0 - 1.0.4-587-g1182501 */
!function (name, context, definition) {
@@ -2551,6 +2551,33 @@ wax.legend = function() {
return legend.add();
};
var wax = wax || {};
+
+wax.location = function() {
+
+ var t = {};
+
+ function on(o) {
+ console.log(o);
+ if ((o.e.type === 'mousemove' || !o.e.type)) {
+ return;
+ } else {
+ var loc = o.formatter({ format: 'location' }, o.data);
+ if (loc) {
+ window.location.href = loc;
+ }
+ }
+ }
+
+ t.events = function() {
+ return {
+ on: on
+ };
+ };
+
+ return t;
+
+};
+var wax = wax || {};
wax.movetip = {};
wax.movetip = function() {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.1.0 - 1.0.4-586-gb6bb974 */
+/* wax - 6.2.0 - 1.0.4-587-g1182501 */
!function (name, context, definition) {
@@ -2551,6 +2551,33 @@ wax.legend = function() {
return legend.add();
};
var wax = wax || {};
+
+wax.location = function() {
+
+ var t = {};
+
+ function on(o) {
+ console.log(o);
+ if ((o.e.type === 'mousemove' || !o.e.type)) {
+ return;
+ } else {
+ var loc = o.formatter({ format: 'location' }, o.data);
+ if (loc) {
+ window.location.href = loc;
+ }
+ }
+ }
+
+ t.events = function() {
+ return {
+ on: on
+ };
+ };
+
+ return t;
+
+};
+var wax = wax || {};
wax.movetip = {};
wax.movetip = function() {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.1.0 - 1.0.4-586-gb6bb974 */
+/* wax - 6.2.0 - 1.0.4-587-g1182501 */
!function (name, context, definition) {
@@ -2551,6 +2551,33 @@ wax.legend = function() {
return legend.add();
};
var wax = wax || {};
+
+wax.location = function() {
+
+ var t = {};
+
+ function on(o) {
+ console.log(o);
+ if ((o.e.type === 'mousemove' || !o.e.type)) {
+ return;
+ } else {
+ var loc = o.formatter({ format: 'location' }, o.data);
+ if (loc) {
+ window.location.href = loc;
+ }
+ }
+ }
+
+ t.events = function() {
+ return {
+ on: on
+ };
+ };
+
+ return t;
+
+};
+var wax = wax || {};
wax.movetip = {};
wax.movetip = function() {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.1.0 - 1.0.4-586-gb6bb974 */
+/* wax - 6.2.0 - 1.0.4-587-g1182501 */
!function (name, context, definition) {
@@ -2572,6 +2572,33 @@ wax.legend = function() {
return legend.add();
};
var wax = wax || {};
+
+wax.location = function() {
+
+ var t = {};
+
+ function on(o) {
+ console.log(o);
+ if ((o.e.type === 'mousemove' || !o.e.type)) {
+ return;
+ } else {
+ var loc = o.formatter({ format: 'location' }, o.data);
+ if (loc) {
+ window.location.href = loc;
+ }
+ }
+ }
+
+ t.events = function() {
+ return {
+ on: on
+ };
+ };
+
+ return t;
+
+};
+var wax = wax || {};
wax.movetip = {};
wax.movetip = function() {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 6.1.0 - 1.0.4-586-gb6bb974 */
+/* wax - 6.2.0 - 1.0.4-587-g1182501 */
!function (name, context, definition) {
@@ -2551,6 +2551,33 @@ wax.legend = function() {
return legend.add();
};
var wax = wax || {};
+
+wax.location = function() {
+
+ var t = {};
+
+ function on(o) {
+ console.log(o);
+ if ((o.e.type === 'mousemove' || !o.e.type)) {
+ return;
+ } else {
+ var loc = o.formatter({ format: 'location' }, o.data);
+ if (loc) {
+ window.location.href = loc;
+ }
+ }
+ }
+
+ t.events = function() {
+ return {
+ on: on
+ };
+ };
+
+ return t;
+
+};
+var wax = wax || {};
wax.movetip = {};
wax.movetip = function() {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "wax",
- "version": "6.1.0",
+ "version": "6.2.0",
"description": "Tools for improving web maps.",
"repository": {
"type": "git",

0 comments on commit fdba7ab

Please sign in to comment.