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

Permite pedir datos de mapa con otro param, limpia

parent b3619c8d
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -32,7 +32,8 @@ define([
				propsWidget: {
					omitTitleBar: true,
					resizable: false
				}
				},
				targetReplaceParameter: 'id'
			};

			lang.mixin(this, this.config, args);
@@ -40,7 +41,7 @@ define([

		_setMainConfigurations: function() {

			this.targetChange = lang.replace(this.templateTargetChange, {id: this.pathVariableId});
			this._replacePathVariableIdInTarget();

			this.widgetConfigs = this._merge([{
				geographic: {
@@ -87,6 +88,14 @@ define([
			}, this.layerConfig || {}]);
		},

		_replacePathVariableIdInTarget: function() {

			var replaceObj = {};
			replaceObj[this.targetReplaceParameter] = this.pathVariableId;

			this.targetChange = lang.replace(this.templateTargetChange, replaceObj);
		},

		_initialize: function() {

			if (!this.definitionLayer) {
@@ -142,15 +151,15 @@ define([

		_refreshModules: function() {

			this._checkPathVariableId();
			/*this._checkPathVariableId();

			this._emitEvt('GET', {
				target: this.target,
				requesterId: this.ownChannel,
				id: this.pathVariableId
			});
			});*/

			this.targetChange = lang.replace(this.templateTargetChange, {id: this.pathVariableId});
			this._replacePathVariableIdInTarget();

			this.layerInstance && this._publish(this.layerInstance.getChannel("CHANGE_TARGET"), {
				target: this.targetChange
@@ -163,10 +172,6 @@ define([
			});
		},

		_itemAvailable: function(response) {

		},

		_getPopupContent: function(data) {

			return this.templatePopup({