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

Elimina parche de auto-refresh de capas

Ya funciona correctamente por la vía de definir el intervalo de
actualización al crear las capas.
parent ca0000dd
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -39,15 +39,7 @@ define([

		_setRefreshInterval: function() {

			// TODO eliminar excepción cuando se defina refresh en el servicio
			var isAutoRefreshLayer = this.layer.wmsParams.layers.indexOf('last_position') !== -1 ||
				this.layer.wmsParams.layers.indexOf('earthquake') !== -1;

			if ((this._checkRefreshIsValid() || isAutoRefreshLayer) && !this._refreshIntervalHandler) {
				if (isAutoRefreshLayer) {
					this.refresh = 15;
				}

			if (this._checkRefreshIsValid() && !this._refreshIntervalHandler) {
				var cbk = lang.hitch(this, this._redraw),
					timeout = this.refresh * 1000;