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

Renombra propiedad que contiene datos de atlas

parent 98bc41be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ define([
			};

			if (this._infoForAddedLayers[layerId]) {
				layerAddReq.extraInfo = this._infoForAddedLayers[layerId];
				layerAddReq.atlasItem = this._infoForAddedLayers[layerId];
				delete this._infoForAddedLayers[layerId];
			}

+1 −1
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ define([
		_subLayerAdded: function(response) {

			// TODO quizá sea mejor retrasar la carga de la leyenda, bajo petición
			this._getLayerLegend(response.extraInfo);
			this._getLayerLegend(response.atlasItem);
			this._mapInstance = response.mapInstance;

			this._publish(this.getChannel('CONNECT'), {
+2 −2
Original line number Diff line number Diff line
@@ -94,10 +94,10 @@ define([
			delete this._refreshIntervalHandler;
		},

		_getLayerLegend: function(extraInfo) {
		_getLayerLegend: function(atlasItem) {

			var legendElement = ServiceOGCImage({
				data: extraInfo
				data: atlasItem
			});

			this._emitEvt('LAYER_LEGEND', this._getLayerLegendToPublish(legendElement));