cms/app-client/app/components/visu-carto.js
changeset 51 70dff07a76ff
parent 45 b9adc23abd01
child 62 6fc7d50c6b5d
--- a/cms/app-client/app/components/visu-carto.js	Thu Dec 10 17:04:51 2015 +0100
+++ b/cms/app-client/app/components/visu-carto.js	Fri Dec 11 13:13:47 2015 +0100
@@ -3,8 +3,11 @@
 export default Ember.Component.extend({
   // storage: Ember.inject.service(),
   didInsertElement: function(){
+    var _this = this;
+    console.log("maps : ", AmCharts.maps);
+
     console.log('test: ', this.get("query"));
-    
+
     this.get("query").map(item => {
   		console.log(item.get('name'));
   	});
@@ -120,7 +123,7 @@
         if (event.mapObject.id == "backButton") {
             handleGoHome();
         }
-        console.log(event.mapObject.title);
+        _this.sendAction('action', event.mapObject.title);
     }
 
     // monitor when home icon was clicked and also go to continents map