Commit eb999c1b authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Muestra en detalle capas con dimensión temporal

La vista detalle de actividad ahora es capaz de mostrar capas
relacionadas sobre el mapa, aunque estas tengan dimensión temporal.
Muestra los controles para manipularla como se desee.
parent b04000db
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -166,8 +166,8 @@ define([
			return {
				startMoment: startMoment,
				endMoment: endMoment,
				startTime: startMoment.valueOf(),
				endTime: endMoment.valueOf()
				startTime: startMoment.toDate(),
				endTime: endMoment.toDate()
			};
		},

+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ define([
		_onToggleShowLayer: function(obj) {

			if (obj.state) {
				this._addMapLayer(obj.id);
				this._addMapLayer(obj.id, obj.item);
			} else {
				this._removeMapLayer(obj.id);
			}
+7 −4
Original line number Diff line number Diff line
@@ -3,16 +3,18 @@ define([
	, 'src/redmicConfig'
	, 'dojo/_base/declare'
	, 'dojo/_base/lang'
	, 'src/component/atlas/_AtlasDimensionsManagement'
	, 'src/component/atlas/_AtlasLayersManagement'
], function(
	ActivityLayerMap
	, redmicConfig
	, declare
	, lang
	, _AtlasDimensionsManagement
	, _AtlasLayersManagement
) {

	return declare([ActivityLayerMap, _AtlasLayersManagement], {
	return declare([ActivityLayerMap, _AtlasDimensionsManagement, _AtlasLayersManagement], {
		//	summary:
		//

@@ -83,7 +85,7 @@ define([

				if (i === 0) {
					var layerId = layer.id;
					this._addMapLayer(layerId);
					this._addMapLayer(layerId, layer);
				}
			}
		},
@@ -104,7 +106,7 @@ define([
			this._activityLayers[atlasItemId] = mapLayerInstance;
		},

		_addMapLayer: function(layerId) {
		_addMapLayer: function(layerId, atlasItem) {

			this.inherited(arguments);

@@ -117,7 +119,8 @@ define([
			var layerInstance = this._activityLayers[layerId];

			this._publish(widgetInstance.getChildChannel('map', 'ADD_LAYER'), {
				layer: layerInstance
				layer: layerInstance,
				atlasItem: atlasItem
			});
		},