Commit 73dd9025 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Publica popup abierto en mapa y cargado en capa

parent d25af997
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ define([
					CENTER_SET: "centerSet",
					ZOOM_SET: "zoomSet",
					BBOX_CHANGED: "bBoxChanged",
					POPUP_OPENED: 'popupOpened',
					POPUP_CLOSED: "popupClosed",
					MAP_CLICKED: "mapClicked",
					CLOSE_POPUP: "closePopup",
@@ -210,6 +211,9 @@ define([
				event: 'BBOX_CHANGE',
				channel: this.getChannel("BBOX_CHANGED"),
				callback: "_pubBBoxChanged"
			},{
				event: 'POPUP_OPEN',
				channel: this.getChannel('POPUP_OPENED')
			},{
				event: 'POPUP_CLOSE',
				channel: this.getChannel("POPUP_CLOSED")
+6 −1
Original line number Diff line number Diff line
@@ -37,7 +37,8 @@ define([
					SET_CENTER: "setCenter",
					LAYER_LOADING: "layerLoading",
					LAYER_LOADED: "layerLoaded",
					LAYER_LEGEND: "layerLegend"
					LAYER_LEGEND: "layerLegend",
					POPUP_LOADED: 'popupLoaded'
				},
				actions: {
					CLEAR: "clear",
@@ -46,6 +47,7 @@ define([
					REMOVE_LAYER: "removeLayer",
					ADD_DATA: "addData",
					POPUP_CLOSED: "popupClosed",
					POPUP_LOADED: 'popupLoaded',
					MAP_CLICKED: "mapClicked",
					LAYER_LOADING: "layerLoading",
					LAYER_LOADED: "layerLoaded",
@@ -146,6 +148,9 @@ define([
			},{
				event: 'FIT_BOUNDS',
				channel: this._buildChannel(this.mapChannel, this.actions.FIT_BOUNDS)
			},{
				event: 'POPUP_LOADED',
				channel: this.getChannel('POPUP_LOADED')
			});
		},

+3 −0
Original line number Diff line number Diff line
@@ -354,12 +354,15 @@ define([
				var popupContent = this.getPopupContent(data);
				if (popupContent.then) {
					popupContent.then(lang.hitch(this, function(data, value) {

						this._markerById[data.feature[this.idProperty]].data.popup = value;
						popup.setContent(value);
						this._emitEvt('POPUP_LOADED', popup);
					}, data));
				} else {
					this._markerById[data.feature[this.idProperty]].data.popup = popupContent;
					popup.setContent(popupContent);
					this._emitEvt('POPUP_LOADED', popup);
				}
			}
		},