define([
	'jquery',
	'underscore',
	'backbone',

	'backendServiceM',
	'helpers',

	'json!vingtilesD'
],
function ($, _, Backbone, backendServiceM, helpers, vingtiles) {
	'use strict';

	var LocatingChartM = Backbone.Model.extend({
		code: null,
		defaults: {
			data: null,
			vingtiles: null,
		},
		initialize: function(options) {
			this.code = options.code;
			this.listenTo(backendServiceM, 'change:apiData', this.parseApiData);
		},
		parseApiData: function() {
			this.set({
				data: helpers.findDeep(backendServiceM.get('apiData').value, {code: this.code}),
				vingtiles: _.findWhere(vingtiles, {id: this.code}),
			});
		},
	});

	return LocatingChartM;
});

@@ -355,16 +355,83 @@
 s.code;%0A
+%09%09%09this.set('vingtiles', _.findWhere(vingtiles, %7Bid: this.code%7D));%0A
 %09%09%09this.
@@ -544,20 +544,78 @@
 set(
-%7B%0A%09%09%09%09data: 
+'data',%0A%09%09%09%09backendServiceM.get('simulationStatus') === 'done' ?%0A%09%09%09%09%09
 help
@@ -687,70 +687,24 @@
 de%7D)
-,
+ :
 %0A%09%09%09%09
-vingtiles: _.findWhere(vingtiles, %7Bid: this.code%7D),
+%09null
 %0A%09%09%09
-%7D
 );%0A%09

Set model vingtiles on initialization.