Changeset 96146a7 in observatorio


Ignore:
Timestamp:
Oct 17, 2014, 1:24:26 PM (10 years ago)
Author:
Ing. Roldan Vargas <rvargas@…>
Branches:
master
Children:
041076e
Parents:
02300bd
Message:

se agrega descripcion para mostrar el nombre de la planta de la unidad economica

File:
1 edited

Legend:

Unmodified
Added
Removed
  • procesos/media/geocadena/js/cadena_productiva.js

    r3e7209a r96146a7  
    110110        msg += "<td>" + feature.attributes['nombre'] + "</td>";
    111111        msg += "<tr>";
     112        if (typeof (feature.attributes['planta']) != "undefined" && feature.attributes['planta'] != null) {
     113            msg += "<tr>";
     114            msg += "<td style='font-weight:bold'>Planta</td>";
     115            msg += "<td>" + feature.attributes['planta'] + "</td>";
     116            msg += "</tr>";
     117        }
    112118        msg += "<tr>";
    113119        msg += "<td style='font-weight:bold'>Coordenadas</td>";
     
    235241        detalle += "<td>" + f.attributes.nombre + "</td>";
    236242        detalle += "</tr>";
     243        if (typeof (f.attributes.planta) != "undefined" && f.attributes.planta != null) {
     244            detalle += "<tr>";
     245            detalle += "<td style='font-weight:bold'>Planta</td>";
     246            detalle += "<td>" + f.attributes.planta + "</td>";
     247            detalle += "</tr>";
     248        }
    237249        /*detalle += "<tr>";
    238250        detalle += "<td style='font-weight:bold'>Nivel</td>";
Note: See TracChangeset for help on using the changeset viewer.