--- a/cms/app-client/app/components/visu-carto.js Tue Jun 21 14:24:30 2016 +0200
+++ b/cms/app-client/app/components/visu-carto.js Wed Jun 22 22:13:46 2016 +0200
@@ -2,7 +2,9 @@
import AmCharts from 'ammaps';
export default Ember.Component.extend({
- // storage: Ember.inject.service(),
+
+ filter: Ember.inject.service(),
+
didInsertElement: function(){
var _this = this;
@@ -99,7 +101,7 @@
if (event.mapObject.id === "backButton") {
handleGoHome();
}
- _this.sendAction('action', event.mapObject.title);
+ _this.get('filter').set('location', event.mapObject.title);
}
// monitor when home icon was clicked and also go to continents map