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/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'amat_concelhos',type: 'png',id_layer: '462'},{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/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_freguesias',type: 'png',tipoid: '2',id_layer: '463'},{maxScale: 500,minScale: 250000,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('Ortofotomapas 1:10000', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'amat_ortos_10k_vpaguiar',type: 'png',id_layer: '469'},{maxScale: 500,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('Carta de Ordenamento', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_carta_ordenamento_pdm',type: 'png',id_layer: '466'},{maxScale: 2500,minScale: 100000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: true,scale_printpdm: 10000,maptitle_printpdm: 'Extracto da Planta de Ordenamento',layout_printpdm: 'A4 portrait ord pdm vpaguiar',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _3TMS.events.register('visibilitychanged', _3TMS, onChangeVisibilityLayer );var _4TMS = new OpenLayers.Layer.TMS('Carta de Condicionantes', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_carta_condicionantes_pdm',type: 'png',id_layer: '467'},{maxScale: 2500,minScale: 100000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: true,scale_printpdm: 10000,maptitle_printpdm: 'Extracto da Planta de Condicionantes',layout_printpdm: 'A4 portrait cond pdm vpaguiar',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _4TMS.events.register('visibilitychanged', _4TMS, onChangeVisibilityLayer );var _5TMS = new OpenLayers.Layer.TMS('Área de Suspensão do PDM', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_area_suspensao_pdm',type: 'png',id_layer: '520'},{maxScale: 500,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});  _5TMS.events.register('visibilitychanged', _5TMS, onChangeVisibilityLayer );var _6TMS = new OpenLayers.Layer.TMS('Cartografia IGeoE', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_cartografia_25k',type: 'png',id_layer: '473'},{maxScale: 10000,minScale: 100000,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scale_printpdm: 20000,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('Altimetria', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_altimetria',type: 'png',id_layer: '475'},{maxScale: 500,minScale: 10000,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});  _7TMS.events.register('visibilitychanged', _7TMS, onChangeVisibilityLayer );var _8TMS = new OpenLayers.Layer.TMS('Planimetria', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_planimetria',type: 'png',id_layer: '474'},{maxScale: 500,minScale: 25000,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});  _8TMS.events.register('visibilitychanged', _8TMS, onChangeVisibilityLayer );var _9TMS = new OpenLayers.Layer.TMS('Lugares', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_lugares',type: 'png',tipoid: '1',id_layer: '464'},{maxScale: 500,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});  _9TMS.events.register('visibilitychanged', _9TMS, onChangeVisibilityLayer );var _10TMS = new OpenLayers.Layer.TMS('Ortofotomapas 1:5000', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_ortos_5k',type: 'png',id_layer: '521'},{maxScale: 500,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});  _10TMS.events.register('visibilitychanged', _10TMS, onChangeVisibilityLayer );var _11TMS = new OpenLayers.Layer.TMS('Ortofotomapas 1:2000', ['http://cache1.municipia.pt/amat/','http://cache2.municipia.pt/amat/','http://cache3.municipia.pt/amat/','http://cache4.municipia.pt/amat/'],{layername: 'vpaguiar_ortos_2k',type: 'png',id_layer: '522'},{maxScale: 500,minScale: 2500,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 ); return[_1TMS,_2TMS,_10TMS,_11TMS,_3TMS,_4TMS,_5TMS,_6TMS,_7TMS,_8TMS,_9TMS]}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;}
