Changeset 40a5fca in observatorio


Ignore:
Timestamp:
Sep 4, 2014, 2:41:55 PM (10 years ago)
Author:
Ing. Roldan Vargas <rvargas@…>
Branches:
master
Children:
a37a9ec
Parents:
e1678fd
Message:

se agregan campos para los titulos a mostrar en cada sección del árbol de capas, Se agrega componente de extjs para mostrar el logotipo del mapa productivo de venezuela y el título del sistema

File:
1 edited

Legend:

Unmodified
Added
Removed
  • procesos/apps/geocadena/templates/geocadena.html

    r5c668cd r40a5fca  
    8686                                {% endfor %}
    8787                        ];
    88                        
     88
     89            var acercade = '<img src="/sig/mapmedia/imgs/icons/logompv.png" width="120px"><br/>' +
     90                    '<p style="text-align:justify; padding-top:15px;">Sistema de Información Geográfico (SIG) para ' +
     91                    'la georeferencia de cadenas de producción e indicadores estadísticos</p>' +
     92                    '<p style="text-align:justify; padding-top:15px;">Centro Nacional de Desarrollo e Investigación ' +
     93                    'en Tecnologías Libres (CENDITEL) nodo Mérida - Venezuela</p>';
     94
    8995                        /**
    9096                         * @brief Ejecuta las instrucciones necesarias para crear la interfaz de usuario del sistema y la
     
    9298                         */
    9399                    Ext.onReady(function() {
    94                         mapPanel = new GeoExt.MapPanel({
     100                mapPanel = new GeoExt.MapPanel({
    95101                            border: true,
     102                    id: 'mapa',
    96103                        region: "center",
    97104                        map: mapa,
     
    128135                                                        menu: [{
    129136                                                                id: 'acerca_de',
    130                                                                 text: 'acerca de'
     137                                                                text: 'acerca de',
     138                                handler: function() {
     139                                    Ext.Msg.show({
     140                                        title: 'Acerca de...',
     141                                        msg: acercade,
     142                                        width: 800,
     143                                        buttons: Ext.Msg.OK,
     144                                        icon: 'acercade',
     145                                        fn: this.callback
     146                                    });
     147                                }
    131148                                                        },{
    132149                                                                id: 'docusr',
    133150                                                                text: 'manual para usuario',
    134151                                                                handler: function() {
    135                                                                         window.open("/sig/docs/sistema/html/index.html");
     152                                                                        window.open("/sig/docs/usuario/build/index.html");
    136153                                                                }
    137154                                                        },{% if debug %}{
     
    147164                                        })
    148165                        });
    149                        
     166
     167
    150168                {% if cadena and referencias %}
    151169                    // Invoca a la función de conexiones para establecer las relaciones entre las Unidades Económicas a
     
    167185                        url_capa: "{% url 'load_layer_json' %}?capa="+capas_extra[c].capa+"&amp;" +
    168186                                "field="+capas_extra[c].campo,
    169                         //mediaURL: '/sig/mapmedia/geojson/',
    170                         //archivo: 'carreteras_vzla',
    171187                        strokeDefaultColor: stroke_color,
    172188                        strokeDefaultWidth: 1,
     
    180196                       
    181197                        var treeConfig = [{
    182                                 nodeType: "gx_baselayercontainer"
     198                                nodeType: "gx_baselayercontainer",
     199                        text: "Capas Base"
    183200                            }, {
    184201                                nodeType: "gx_overlaylayercontainer",
     202                        text: "Capas Extra",
    185203                                expanded: true,
    186204                                loader: {
     
    188206                                        radioGroup: "foo",
    189207                                        uiProvider: "layernodeui"
    190                                     },
     208                                    }
    191209                                }
    192210                            }];
     
    263281                };
    264282
    265                 var banner = '<img src="{% static 'images/BANNER2_MPV.jpg' %}" width="1450px" height="150px" />';
     283                var iconompv = '<img src="/sig/mapmedia/imgs/icons/logompv.png" width="120px">';
     284                var header_static = '<div style="float:left;">'+iconompv+'</div>';
     285                header_static += '<div style="float:left;text-align:center;width:91%; font-size: 14px; ' +
     286                        'font-weight: bold; height: 45px; padding-top: 15px;color:#24428B;"><span ' +
     287                        'style="vertical-align:middle">SISTEMA DE ' +
     288                        'INFORMACIÓN GEOGRAFICO</span></div>';
    266289
    267290                    new Ext.Viewport({
     
    271294                            layout: "border",
    272295                            deferredRender: false,
    273                             items: [{
     296                            items: [
     297                            new Ext.BoxComponent({
    274298                                region: 'north',
    275                                 html: banner,
    276                                 autoHeight: true,
    277                                 border: false,
    278                                 margins: '0 0 5 0',
    279                                 collapsible: true
    280                             },
     299                                height: 48, // give north and south regions a height
     300                                autoEl: {
     301                                    tag: 'div',
     302                                    html: header_static
     303                                }
     304                            }),
    281305                                mapPanel,
    282306                                {
     
    345369                                numDigits: 6,
    346370                                emptyString: 'Cursor fuera del Mapa',
    347                                 displayProjection: fromProjection,
     371                                displayProjection: fromProjection
    348372                        }));
    349                        
    350                        
    351                        
    352                        
    353                        
    354                        
    355                         // Crea el objeto que permite mostrar un mensaje de cargando...
    356                         /*var loading = Ext.get('loading');
    357                         var mask = Ext.get('loading-mask');
    358                         mask.setOpacity(0.8);
    359                         mask.shift({
    360                                 xy: loading.getXY(),
    361                                 width: loading.getWidth(),
    362                                 height: loading.getHeight(),
    363                                 remove: true,
    364                                 duration: 1,
    365                                 opacity: 0.3,
    366                                 easing: 'easeOut',
    367                                 callback: function() {
    368                                         loading.fadeOut({
    369                                                 duration: 1,
    370                                                 remove: true
    371                                         });
    372                                 }
    373                         });*/
     373
    374374                        });
    375                        
    376                        
    377375                       
    378376                </script>
Note: See TracChangeset for help on using the changeset viewer.