--- a/cms/app-client/app/components/visu-carto.js Sun Oct 02 21:43:05 2016 +0200
+++ b/cms/app-client/app/components/visu-carto.js Tue Oct 04 23:04:06 2016 +0200
@@ -4,6 +4,8 @@
export default Ember.Component.extend({
+ constants: Ember.inject.service(),
+
map: null,
continentsMapVar: AmCharts.maps.continentsLow,
@@ -21,7 +23,7 @@
filter: Ember.inject.service(),
locationObserver: Ember.observer('filter.location', function() {
if(!this.get('filter').get('location')) {
- this.sendAction('setLocation', '6295630');
+ this.sendAction('setLocation', this.get('constants').GEONAMES['world']);
}
}),
@@ -30,7 +32,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 === '3017382') {
+ if(this.get('map').selectedObject.id === this.get('constants').GEONAMES['france']) {
this.setFranceAreas();
this.set('dataProvider', {
'mapVar': this.get('franceMapVar'),