var listApiComerciais = [];listApiComerciais[0]='';listApiComerciais[1]='';listApiComerciais[2]='';function loadApiComerciais(list){for(var i = 0; i<list.length; i++){if(list[i]!=''){var e=document.getElementsByTagName('head')[0];if(!e){e=document.body.parentNode.appendChild(document.createElement('head'))}document.write('<script src="'+list[i]+'" type="text/javascript"><\/script>')}}}loadApiComerciais(listApiComerciais);function getBaseLayers(){var _0TMS = new OpenLayers.Layer.TMS('Concelhos', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_concelhos',type: 'png',globalid: 'df9fe252-4d6c-4fc0-a29d-615db2696059',id_layer: '281'},{opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: app.optionsLayer.scales,resolutions: app.optionsLayer.resolutions,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _0TMS.events.register('visibilitychanged', _0TMS, onChangeVisibilityLayer ); return[_0TMS]}function getOverLayers(){var _1TMS = new OpenLayers.Layer.TMS('Freguesias', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_freguesias',type: 'png',globalid: 'f0285980-6361-438b-943b-0a9297db62d8',tipoid: '2',id_layer: '282'},{maxScale: 5000,minScale: 250000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: 1});  _1TMS.events.register('visibilitychanged', _1TMS, onChangeVisibilityLayer );var _2TMS = new OpenLayers.Layer.TMS('Cartografia 1:25000', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_cartografia_1_25000_raster',type: 'png',globalid: 'b4b55c12-fbd6-45cb-ba21-d6d3e206acb1',id_layer: '268'},{maxScale: 10000,minScale: 100000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _2TMS.events.register('visibilitychanged', _2TMS, onChangeVisibilityLayer );var _3TMS = new OpenLayers.Layer.TMS('Ortofotomapas 1:10000', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_ortofotomapas_1_10000',type: 'png',globalid: 'd8a36dca-38f7-4583-bdd7-f5d411b4b30f',id_layer: '269'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _3TMS.events.register('visibilitychanged', _3TMS, onChangeVisibilityLayer );var _4TMS = new OpenLayers.Layer.TMS('Linhas de Água', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_linhas_de_agua',type: 'png',globalid: '41550d5d-38b5-41ee-9ad2-4ee539c5a4c5',id_layer: '270'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _4TMS.events.register('visibilitychanged', _4TMS, onChangeVisibilityLayer );var _5TMS = new OpenLayers.Layer.TMS('Plano de Salvaguarda do Centro Histórico', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_plano_de_salvaguarda_do_centro_historico',type: 'png',globalid: '1aa9a08f-a046-433f-83aa-e4692d1eb450',id_layer: '271'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _5TMS.events.register('visibilitychanged', _5TMS, onChangeVisibilityLayer );var _6TMS = new OpenLayers.Layer.TMS('Rede Eléctrica Nacional - 220kv', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_linhas_rede_electrica_nacional_220kv',type: 'png',globalid: '3d312539-f3e3-4dde-bcbf-b36d036a8f34',id_layer: '272'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _6TMS.events.register('visibilitychanged', _6TMS, onChangeVisibilityLayer );var _7TMS = new OpenLayers.Layer.TMS('Rede Eléctrica Nacional - 150kv', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_linhas_rede_electrica_nacional_150kv',type: 'png',globalid: 'd989c881-6dca-47e8-a975-a09d12fd2cf6',id_layer: '273'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _7TMS.events.register('visibilitychanged', _7TMS, onChangeVisibilityLayer );var _8TMS = new OpenLayers.Layer.TMS('Rede Eléctrica Nacional - 15kv', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_linhas_rede_electrica_nacional_15kv',type: 'png',globalid: 'f5a6ac37-7527-4b3d-a6d9-ccf230c0ca04',id_layer: '274'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _8TMS.events.register('visibilitychanged', _8TMS, onChangeVisibilityLayer );var _9TMS = new OpenLayers.Layer.TMS('Áreas Ardidas nos últimos 10 Anos', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_areas_ardidas_nos_ultimos_10_anos',type: 'png',globalid: 'ec1e31e2-bb06-4552-9be0-2a3c0b3c29be',id_layer: '275'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _9TMS.events.register('visibilitychanged', _9TMS, onChangeVisibilityLayer );var _10TMS = new OpenLayers.Layer.TMS('Zona Especial de Protecção', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_zona_especial_de_proteccao',type: 'png',globalid: 'a1c58b6d-9749-4fcd-8c10-5b92d83fe59b',id_layer: '276'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _10TMS.events.register('visibilitychanged', _10TMS, onChangeVisibilityLayer );var _11TMS = new OpenLayers.Layer.TMS('Rede de Saneamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_rede_de_saneamento',type: 'png',globalid: 'd4eff1be-fa5f-4168-9c34-5fc196322c7f',id_layer: '285'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _11TMS.events.register('visibilitychanged', _11TMS, onChangeVisibilityLayer );var _12TMS = new OpenLayers.Layer.TMS('Rede de Abastecimento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_rede_de_abastecimento',type: 'png',globalid: '7a66c225-34e0-4886-9443-4120228347f7',id_layer: '307'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _12TMS.events.register('visibilitychanged', _12TMS, onChangeVisibilityLayer );var _13TMS = new OpenLayers.Layer.TMS('Rede Viária', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_rede_viaria_infra_estruturas',type: 'png',globalid: '50254770-0dd3-449c-9cf8-cd4da0da0269',id_layer: '286'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _13TMS.events.register('visibilitychanged', _13TMS, onChangeVisibilityLayer );var _14TMS = new OpenLayers.Layer.TMS('Mapa Perigosidade de Incêndio Florestal', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_mapa_perigosidade_de_incendio_florestal',type: 'png',globalid: '24e1428e-9a95-462b-8e86-a61eafc8bf7c',id_layer: '287'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _14TMS.events.register('visibilitychanged', _14TMS, onChangeVisibilityLayer );var _15TMS = new OpenLayers.Layer.TMS('Carta de Ordenamento da Bouçã', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_carta_de_ordenamento_da_bouca',type: 'png',globalid: 'a7ad2bb6-796c-45b9-b638-87d21a79b987',id_layer: '288'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _15TMS.events.register('visibilitychanged', _15TMS, onChangeVisibilityLayer );var _16TMS = new OpenLayers.Layer.TMS('Carta de Condicionantes da Bouçã', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_carta_de_condicionantes_da_bouca',type: 'png',globalid: '86d17d27-b496-4ca0-9cbd-6ce8d314b0ad',id_layer: '289'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _16TMS.events.register('visibilitychanged', _16TMS, onChangeVisibilityLayer );var _17TMS = new OpenLayers.Layer.TMS('Carta de Ordenamento do Cabril', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_carta_de_ordenamento_do_cabril',type: 'png',globalid: '66908c65-a001-4e63-ac0b-92234dbcf591',id_layer: '290'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _17TMS.events.register('visibilitychanged', _17TMS, onChangeVisibilityLayer );var _18TMS = new OpenLayers.Layer.TMS('Carta de Condicionantes do Cabril', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_carta_de_condicionantes_do_cabril',type: 'png',globalid: '858c01cd-a7db-4166-95ad-e1c72638bdc7',id_layer: '291'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _18TMS.events.register('visibilitychanged', _18TMS, onChangeVisibilityLayer );var _19TMS = new OpenLayers.Layer.TMS('Carta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_carta_de_ordenamento_do_pdm_raster',type: 'png',globalid: '91f67aff-0d98-4255-a49c-6d13858bdc7d',id_layer: '277'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: true,scale_printpdm: 25000,maptitle_printpdm: 'Planta de Ordenamento do PDM',layout_printpdm: 'A4 portrait ord pgrande',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _19TMS.events.register('visibilitychanged', _19TMS, onChangeVisibilityLayer );var _20TMS = new OpenLayers.Layer.TMS('Carta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_carta_de_condicionantes_do_pdm_raster',type: 'png',globalid: '397e09f0-98db-4e5f-8107-bd0476bc6b2b',id_layer: '278'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: true,scale_printpdm: 25000,maptitle_printpdm: 'Planta de Condicionantes do PDM',layout_printpdm: 'A4 portrait cond pgrande',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _20TMS.events.register('visibilitychanged', _20TMS, onChangeVisibilityLayer );var _21TMS = new OpenLayers.Layer.TMS('Reserva Ecológica Nacional', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_reserva_ecologica_nacional_raster',type: 'png',globalid: 'daf05d11-49b0-4700-a1b7-cdfb12c45e22',id_layer: '279'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: true,scale_printpdm: 25000,maptitle_printpdm: 'Planta da Reserva Ecológica Nacional',layout_printpdm: 'A4 portrait ren pgrande',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _21TMS.events.register('visibilitychanged', _21TMS, onChangeVisibilityLayer );var _22TMS = new OpenLayers.Layer.TMS('Reserva Agrícola Nacional', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_reserva_agricola_nacional_raster',type: 'png',globalid: 'a5120eff-7236-41d1-b81f-e710da950743',id_layer: '280'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: true,scale_printpdm: 25000,maptitle_printpdm: 'Planta da Reserva Agrícola Nacional',layout_printpdm: 'A4 portrait ran pgrande',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _22TMS.events.register('visibilitychanged', _22TMS, onChangeVisibilityLayer );var _23TMS = new OpenLayers.Layer.TMS('Carta de Ordenamento (vectorial)', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_carta_de_ordenamento_do_pdm_vectorial',type: 'png',globalid: 'e1de3db2-7cda-4e68-b657-8a7c92418e98',typename: 'pgrande:carta_de_ordenamento_do_pdm_vectorial',id_layer: '292'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: true,buffer: 0,geometry_column: 'the_geom',queryable: false,crossable: true,cross_column: 'tipologia',printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _23TMS.events.register('visibilitychanged', _23TMS, onChangeVisibilityLayer );var _24TMS = new OpenLayers.Layer.TMS('Carta de Condicionantes (vectorial)', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_carta_de_condicionantes_do_pdm_vectorial',type: 'png',globalid: '87f5768e-0df1-445f-ba4b-ee7ba66aa744',typename: 'pgrande:carta_de_condicionantes_do_pdm_vectorial',id_layer: '293'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,geometry_column: 'the_geom',queryable: false,crossable: true,cross_column: 'tipologia_',printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _24TMS.events.register('visibilitychanged', _24TMS, onChangeVisibilityLayer );var _25TMS = new OpenLayers.Layer.TMS('PSVCH - vectorial', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_psvch_vectorial',type: 'png',globalid: 'd9fd0408-cbd7-4cf0-93d7-e3c1430ee5c8',id_layer: '294'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _25TMS.events.register('visibilitychanged', _25TMS, onChangeVisibilityLayer );var _26TMS = new OpenLayers.Layer.TMS('Reserva Agrícola Nacional (vectorial)', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_reserva_agricola_nacional_vectorial',type: 'png',globalid: '564b3d8e-229c-4ed2-8a26-8a28c7fadd03',typename: 'pgrande:reserva_agricola_nacional_vectorial',id_layer: '295'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,geometry_column: 'the_geom',queryable: false,crossable: true,cross_column: 'tipologia',printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _26TMS.events.register('visibilitychanged', _26TMS, onChangeVisibilityLayer );var _27TMS = new OpenLayers.Layer.TMS('Reserva Ecológica Nacional (vectorial)', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_reserva_ecologica_nacional_vectorial',type: 'png',globalid: '48c7a4fb-0cdc-4864-804f-1074d363f040',typename: 'pgrande:reserva_ecologica_nacional_vectorial',id_layer: '296'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,geometry_column: 'the_geom',queryable: false,crossable: true,cross_column: 'nome_tipol',printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _27TMS.events.register('visibilitychanged', _27TMS, onChangeVisibilityLayer );var _28TMS = new OpenLayers.Layer.TMS('Cartografia', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_cartografia',type: 'png',globalid: '3042d59a-db49-474a-9d22-3e18db663306',id_layer: '284'},{maxScale: 1000,minScale: 30000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _28TMS.events.register('visibilitychanged', _28TMS, onChangeVisibilityLayer );var _29TMS = new OpenLayers.Layer.TMS('Rede Viária', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_rede_viaria_cartografia',type: 'png',globalid: '905e2fd3-6e61-458d-9151-2f758f72fc5c',id_layer: '267'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _29TMS.events.register('visibilitychanged', _29TMS, onChangeVisibilityLayer );var _30TMS = new OpenLayers.Layer.TMS('Lugares', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'pgrande_lugares',type: 'png',globalid: '951b4947-7fd0-4bd5-9739-d9e8d203fdad',tipoid: '1',id_layer: '283'},{maxScale: 5000,minScale: 50000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _30TMS.events.register('visibilitychanged', _30TMS, onChangeVisibilityLayer ); return[_1TMS,_2TMS,_3TMS,_4TMS,_5TMS,_6TMS,_7TMS,_8TMS,_9TMS,_10TMS,_11TMS,_12TMS,_13TMS,_14TMS,_15TMS,_16TMS,_17TMS,_18TMS,_19TMS,_20TMS,_21TMS,_22TMS,_23TMS,_24TMS,_25TMS,_26TMS,_27TMS,_28TMS,_29TMS,_30TMS]}function getControls(){var controls = {};controls.navigation=true;controls.get_information=false;controls.measure=true;controls.draw_polygon=true;controls.print_visible=true;controls.print_pdm=true;controls.print_pip=false;controls.comboshortcut=false;controls.scalebar=true;controls.overview=true;controls.theme=false;controls.tab_layers=true;controls.tab_search=true;controls.tab_emissao_plantas_localizacao=false;controls.tab_pedidos_plantas_localizacao=false;controls.tab_estatisticos=false;controls.tab_print=false;controls.tab_help=true;controls.regulamentos=true;controls.side = 'east';return controls;}
