cms/app-client/app/components/visu-carto.js
changeset 197 7b266ccf6d3d
parent 193 64afd482ac71
child 200 a441c40f9c5e
--- 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