Commit 24e886ac authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Retoca detección de procedencia de capas

Muestra correctamente si la capa cargada procede de una selección en
atlas o si es provista por el contexto en el que se encuentra.

Actualiza módulo.
parent 1fb51a74
Loading
Loading
Loading
Loading
Compare cb600ad6 to 1a9f7db7
Original line number Diff line number Diff line
Subproject commit cb600ad64492141cf7a48db6cb019d2eaa3cd094
Subproject commit 1a9f7db740dbd54297c02496033a1ba5ee9421ec
+1 −4
Original line number Diff line number Diff line
@@ -90,10 +90,7 @@ define([
								icon: 'fa-trash-o',
								btnId: 'remove',
								title: 'remove',
								condition: function(atlasLayerItem) {

									return !!atlasLayerItem.atlasItem.atlas;
								},
								condition: atlasLayerItem => !atlasLayerItem.providedByView,
								returnItem: true
							}]
						}
+8 −0
Original line number Diff line number Diff line
@@ -77,6 +77,14 @@ define([
			var atlasItems = res.data.data;

			return atlasItems.map(lang.hitch(this, this._getAtlasLayerItemToInject));
		},

		_getAtlasLayerItemToInject: function(atlasItem) {

			const inheritedAtlasItem = this.inherited(arguments),
				providedByView = true;

			return this._merge([inheritedAtlasItem, {providedByView}]);
		}
	});
});