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/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_concelhos',type: 'png',id_layer: '1090'},{opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',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/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_freguesias',type: 'png',tipoid: '2',id_layer: '1091'},{maxScale: 4000,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: 1});  _1TMS.events.register('visibilitychanged', _1TMS, onChangeVisibilityLayer );var _2TMS = new OpenLayers.Layer.TMS('Ortofotomapa 1:10000', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_ortos_10k',type: 'png',id_layer: '1093'},{maxScale: 1,minScale: 25000,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});  _2TMS.events.register('visibilitychanged', _2TMS, onChangeVisibilityLayer );var _3TMS = new OpenLayers.Layer.TMS('1:2000', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_altimetria_2k',type: 'png',id_layer: '1115'},{maxScale: 1,minScale: 5000,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});  _3TMS.events.register('visibilitychanged', _3TMS, onChangeVisibilityLayer );var _4TMS = new OpenLayers.Layer.TMS('1:10000', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_altimetria_10k',type: 'png',id_layer: '1116'},{maxScale: 1,minScale: 25000,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});  _4TMS.events.register('visibilitychanged', _4TMS, onChangeVisibilityLayer );var _5TMS = new OpenLayers.Layer.TMS('1:2000', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_planimetria_2k',type: 'png',id_layer: '1109'},{maxScale: 1,minScale: 5000,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});  _5TMS.events.register('visibilitychanged', _5TMS, onChangeVisibilityLayer );var _6TMS = new OpenLayers.Layer.TMS('1:10000', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_planimetria_10k',type: 'png',id_layer: '1110'},{maxScale: 1,minScale: 25000,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});  _6TMS.events.register('visibilitychanged', _6TMS, onChangeVisibilityLayer );var _7TMS = new OpenLayers.Layer.TMS('Ordenamento (Raster)', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_pdm_ord_raster',type: 'png',id_layer: '1095'},{maxScale: 10000,minScale: 100000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: true,scale_printpdm: 25000,maptitle_printpdm: 'Planta de Ordenamento (Raster)',layout_printpdm: 'A4 portrait pdm ord raster arganil',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _7TMS.events.register('visibilitychanged', _7TMS, onChangeVisibilityLayer );var _8TMS = new OpenLayers.Layer.TMS('Reserva Agrícola Nacional (Raster)', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_pdm_ran_raster',type: 'png',id_layer: '1097'},{maxScale: 10000,minScale: 100000,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 (Raster)',layout_printpdm: 'A4 portrait pdm ran raster arganil',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _8TMS.events.register('visibilitychanged', _8TMS, onChangeVisibilityLayer );var _9TMS = new OpenLayers.Layer.TMS('Áreas Submetidas ao Regime Florestal', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_pdm_areas_submetidas',type: 'png',id_layer: '1098'},{maxScale: 10000,minScale: 100000,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});  _9TMS.events.register('visibilitychanged', _9TMS, onChangeVisibilityLayer );var _10TMS = new OpenLayers.Layer.TMS('Saúde e Assistência', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_pdm_situacao_existente_saude',type: 'png',id_layer: '1100'},{maxScale: 10000,minScale: 100000,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});  _10TMS.events.register('visibilitychanged', _10TMS, onChangeVisibilityLayer );var _11TMS = new OpenLayers.Layer.TMS('Ensino, Cultura e Desporto', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_pdm_situacao_existente_ensino',type: 'png',id_layer: '1101'},{maxScale: 10000,minScale: 100000,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});  _11TMS.events.register('visibilitychanged', _11TMS, onChangeVisibilityLayer );var _12TMS = new OpenLayers.Layer.TMS('Reserva Ecológica Nacional (Raster)', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_pdm_ren_raster',type: 'png',id_layer: '1102'},{maxScale: 10000,minScale: 100000,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 (Raster)',layout_printpdm: 'A4 portrait pdm ren raster arganil',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _12TMS.events.register('visibilitychanged', _12TMS, onChangeVisibilityLayer );var _13TMS = new OpenLayers.Layer.TMS('Espaço de Planeamento', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_pdm_espaco_planeamento',type: 'png',id_layer: '1103'},{maxScale: 10000,minScale: 100000,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});  _13TMS.events.register('visibilitychanged', _13TMS, onChangeVisibilityLayer );var _14TMS = new OpenLayers.Layer.TMS('De 1985 a 1992', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_pdm_areas_ardidas_85_92',type: 'png',id_layer: '1105'},{maxScale: 10000,minScale: 100000,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});  _14TMS.events.register('visibilitychanged', _14TMS, onChangeVisibilityLayer );var _15TMS = new OpenLayers.Layer.TMS('Mancha por Ano Fogo', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_pdm_areas_ardidas',type: 'png',id_layer: '1106'},{maxScale: 10000,minScale: 100000,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});  _15TMS.events.register('visibilitychanged', _15TMS, onChangeVisibilityLayer );var _16TMS = new OpenLayers.Layer.TMS('Rede Viária', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_rede_viaria',type: 'png',id_layer: '1113'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _16TMS.events.register('visibilitychanged', _16TMS, onChangeVisibilityLayer );var _17TMS = new OpenLayers.Layer.TMS('Lugares', ['http://cache1.municipia.pt/arganil/','http://cache2.municipia.pt/arganil/','http://cache3.municipia.pt/arganil/','http://cache4.municipia.pt/arganil/'],{layername: 'arganil_lugares',type: 'png',tipoid: '1',id_layer: '1114'},{maxScale: 4000,minScale: 50000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _17TMS.events.register('visibilitychanged', _17TMS, onChangeVisibilityLayer ); return[_1TMS,_2TMS,_3TMS,_4TMS,_5TMS,_6TMS,_7TMS,_8TMS,_9TMS,_10TMS,_11TMS,_12TMS,_13TMS,_14TMS,_15TMS,_16TMS,_17TMS]}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.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;}
