cms/app-client/app/components/visu-carto.js
changeset 314 f5690d918358
parent 309 6ab16926b675
child 331 9836845ed1e8
--- a/cms/app-client/app/components/visu-carto.js	Sun Oct 02 19:11:06 2016 +0200
+++ b/cms/app-client/app/components/visu-carto.js	Sun Oct 02 19:14:07 2016 +0200
@@ -21,7 +21,7 @@
     filter: Ember.inject.service(),
     locationObserver: Ember.observer('filter.location', function() {
         if(!this.get('filter').get('location')) {
-            this.sendAction('setLocation', 'world');
+            this.sendAction('setLocation', '6295630');
         }
     }),
 
@@ -30,7 +30,7 @@
         if(this.get('map')) {
             if(this.get('map').selectedObject.id) {
                 if(this.get('map').selectedObject.parentObject.mapVar === this.get('countriesMapVar')) {
-                    if(this.get('map').selectedObject.id === 'FR') {
+                    if(this.get('map').selectedObject.id === '3017382') {
                         this.setFranceAreas();
                         this.set('dataProvider', {
                             'mapVar': this.get('franceMapVar'),
@@ -82,7 +82,7 @@
             };
             var departments = self.get('geostats').find(geostat => geostat.id === area.id);
             if(typeof departments === 'undefined') {
-                object['mouseEnabled'] = false,
+                object['mouseEnabled'] = false;
                 object['color'] = self.get('color');
             } else {
                 object['value'] = departments.get('count');
@@ -133,7 +133,7 @@
             };
             var continent = self.get('geostats').find(geostat => geostat.id === area.id);
             if(typeof continent === 'undefined') {
-                object['mouseEnabled'] = false,
+                object['mouseEnabled'] = false;
                 object['color'] = self.get('color');
             } else {
                 object['value'] = continent.get('count');
@@ -149,8 +149,7 @@
     },
 
     createAmMap: function() {
-        var self = this;
-        
+
         this.setContinentsAreas();
         this.set('dataProvider', {
             'mapVar': this.get('continentsMapVar'),