Commit 18eb56b0 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Muestra resultados de consulta de capas en tab

Implementa en módulo QueryOnMap el manejo de su representación mediante
publicaciones al módulo TabsContainer, abandonando la práctica hasta el
momento de mostrarse en un popup. Comprueba siempre que tiene el canal
del módulo disponible antes de intentarlo, y también muestra un mensaje
placeholder cuando no hay datos que mostrar.

Adapta las vistas que usan el módulo Atlas para trabajar de esta forma,
mucho más ágil y clara para el usuario.

Fix #66.
parent 921438ca
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@ define([
	, "dojo/aspect"
	, "redmic/modules/atlas/Atlas"
	, "redmic/modules/base/_Filter"
	, "redmic/modules/base/_ShowInPopup"
	, "redmic/modules/base/_Store"
	, "redmic/modules/browser/bars/Total"
	, "redmic/modules/browser/_ButtonsInRow"
@@ -31,7 +30,6 @@ define([
	, aspect
	, Atlas
	, _Filter
	, _ShowInPopup
	, _Store
	, Total
	, _ButtonsInRow
@@ -203,10 +201,10 @@ define([
				addTabChannel: this._tabsDisplayer.getChannel('ADD_TAB')
			});

			var QueryOnMapPopup = declare(QueryOnMap).extend(_ShowInPopup);
			this._queryOnMap = new QueryOnMapPopup({
			this._queryOnMap = new QueryOnMap({
				parentChannel: this.getChannel(),
				getMapChannel: getMapChannel
				getMapChannel: getMapChannel,
				tabsDisplayerChannel: this._tabsDisplayer.getChannel()
			});
		},

+3 −5
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@ define([
	, "RWidgets/Utilities"
	, "redmic/modules/atlas/Atlas"
	, "redmic/modules/base/_Filter"
	, "redmic/modules/base/_ShowInPopup"
	, "redmic/modules/browser/_ButtonsInRow"
	, "redmic/modules/browser/_Framework"
	, "redmic/modules/browser/_Select"
@@ -49,7 +48,6 @@ define([
	, Utilities
	, Atlas
	, _Filter
	, _ShowInPopup
	, _ButtonsInRow
	, _Framework
	, _Select
@@ -371,10 +369,10 @@ define([
				addTabChannel: this._tabsDisplayer.getChannel('ADD_TAB')
			});

			var QueryOnMapPopup = declare(QueryOnMap).extend(_ShowInPopup);
			this._queryOnMap = new QueryOnMapPopup({
			this._queryOnMap = new QueryOnMap({
				parentChannel: this.getChannel(),
				getMapChannel: getMapChannel
				getMapChannel: getMapChannel,
				tabsDisplayerChannel: this._tabsDisplayer.getChannel()
			});
		},

+2 −4
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@ define([
	, "redmic/modules/base/_Store"
	, "redmic/modules/components/ProgressSlider/ProgressSlider"
	, "redmic/modules/atlas/Atlas"
	, "redmic/modules/base/_ShowInPopup"
	, 'redmic/modules/form/FormContainerImpl'
	, 'redmic/modules/layout/genericDisplayer/GenericWithTopbarDisplayerImpl'
	, 'redmic/modules/layout/TabsDisplayer'
@@ -38,7 +37,6 @@ define([
	, _Store
	, ProgressSlider
	, Atlas
	, _ShowInPopup
	, FormContainerImpl
	, GenericWithTopbarDisplayerImpl
	, TabsDisplayer
@@ -228,10 +226,10 @@ define([
				addTabChannel: this._tabsDisplayer.getChannel('ADD_TAB')
			});

			var QueryOnMapPopup = declare(QueryOnMap).extend(_ShowInPopup);
			this._queryOnMap = new QueryOnMapPopup({
			this._queryOnMap = new QueryOnMap({
				parentChannel: this.getChannel(),
				getMapChannel: getMapChannel,
				tabsDisplayerChannel: this._tabsDisplayer.getChannel(),
				typeGroupProperty: this.typeGroupProperty
			});
		},
+1 −0
Original line number Diff line number Diff line
@@ -1327,6 +1327,7 @@ define({
	, "privateInternalUrl": "Documento interno privado"
	, "resourceType": "Tipo de recurso"

	, "selectFeatureOnMap": "Pulse sobre algún elemento del mapa para obtener información"

	// Meta-tags
	, "metaDefaultTitle": "Repositorio de Datos Marinos Integrados de Canarias"
+1 −0
Original line number Diff line number Diff line
@@ -1331,6 +1331,7 @@ define({
		, "privateInternalUrl": "Private internal document"
		, "resourceType": "Resource type"

		, "selectFeatureOnMap": "Click on any element of the map to get information"

		// Meta-tags
		, "metaDefaultTitle": "Repositorio de Datos Marinos Integrados de Canarias"
Loading