From 63de8d9016b3316748e73ba5c4591fb2f2e652de Mon Sep 17 00:00:00 2001 From: madhuka Date: Mon, 7 Mar 2016 14:55:33 +0530 Subject: [PATCH 1/6] adding leaflet --- zeppelin-web/bower.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zeppelin-web/bower.json b/zeppelin-web/bower.json index ae29f70cca9..2772f73141a 100644 --- a/zeppelin-web/bower.json +++ b/zeppelin-web/bower.json @@ -32,7 +32,9 @@ "bootstrap3-dialog": "bootstrap-dialog#~1.34.7", "handsontable": "~0.24.2", "moment-duration-format": "^1.3.0", - "select2": "^4.0.3" + "select2": "^4.0.3", + "leaflet": "~0.7.7", + "angular-leaflet-directive": "~0.10.0", }, "devDependencies": { "angular-mocks": "1.5.0" From c7d5a9af11521008fb6c7c486c2f7a2e19f988e7 Mon Sep 17 00:00:00 2001 From: madhuka Date: Mon, 7 Mar 2016 15:51:21 +0530 Subject: [PATCH 2/6] adding map visualization for zeppelin --- zeppelin-web/src/app/app.js | 4 +- .../paragraph/paragraph-chart-selector.html | 7 ++- .../notebook/paragraph/paragraph-graph.html | 5 ++ .../paragraph/paragraph.controller.js | 57 ++++++++++++++++++- .../src/app/notebook/paragraph/paragraph.css | 9 +++ 5 files changed, 77 insertions(+), 5 deletions(-) diff --git a/zeppelin-web/src/app/app.js b/zeppelin-web/src/app/app.js index 20ccfb11f9e..fd272ff7b48 100644 --- a/zeppelin-web/src/app/app.js +++ b/zeppelin-web/src/app/app.js @@ -33,8 +33,10 @@ 'xeditable', 'ngToast', 'focus-if', - 'ngResource' + 'ngResource', + 'leaflet-directive' ]) + .filter('breakFilter', function() { return function(text) { if (!!text) { diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph-chart-selector.html b/zeppelin-web/src/app/notebook/paragraph/paragraph-chart-selector.html index 0c763189fa5..c7d73ef2829 100644 --- a/zeppelin-web/src/app/notebook/paragraph/paragraph-chart-selector.html +++ b/zeppelin-web/src/app/notebook/paragraph/paragraph-chart-selector.html @@ -47,6 +47,10 @@ ng-class="{'active': isGraphMode('scatterChart')}" ng-click="setGraphMode('scatterChart', true)"> +