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('Municípios', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'cartografiaBaseMad',type: 'png',id_layer: '71'},{opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: true,buffer: 1,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 );var _2TMS = new OpenLayers.Layer.TMS('Ortofotomapas', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'ortosSres',type: 'png',id_layer: '60'},{opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: false,buffer: 1,queryable: false,crossable: false,printpdm: false,scales: app.optionsLayer.scales,resolutions: app.optionsLayer.resolutions,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _2TMS.events.register('visibilitychanged', _2TMS, onChangeVisibilityLayer ); return[_0TMS,_2TMS]}function getOverLayers(){var _1TMS = new OpenLayers.Layer.TMS('Concelhos Labels', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'concelhosLabelsMad',type: 'png',id_layer: '58'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,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 _3TMS = new OpenLayers.Layer.TMS('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'CAMARA_LOBOS_ORDENAMENTO',type: 'png',typename: 'geocid:CAMARA_LOBOS_ORDENAMENTO',id_layer: '147'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'CAMARA_LOBOS_CONDICIONANTES',type: 'png',typename: 'geocid:CAMARA_LOBOS_CONDICIONANTES',id_layer: '150'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'CAMARA_LOBOS_PLANEAMENTO',type: 'png',id_layer: '149'},{maxScale: 1,minScale: 500000,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('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'CALHETA_ORDENAMENTO',type: 'png',typename: 'geocid:CALHETA_ORDENAMENTO',id_layer: '143'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'CALHETA_CONDICIONANTES',type: 'png',typename: 'geocid:CALHETA_CONDICIONANTES',id_layer: '146'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'CALHETA_PLANEAMENTO',type: 'png',typename: 'geocid:CALHETA_PLANEAMENTO',id_layer: '145'},{maxScale: 1,minScale: 500000,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('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'PONTA_SOL_ORDENAMENTO',type: 'png',typename: 'geocid:PONTA_SOL_ORDENAMENTO',id_layer: '139'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'PONTA_SOL_CONDICIONANTES',type: 'png',typename: 'geocid:PONTA_SOL_CONDICIONANTES',id_layer: '142'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'PONTA_SOL_PLANEAMENTO',type: 'png',id_layer: '141'},{maxScale: 1,minScale: 500000,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('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'PORTO_MONIZ_ORDENAMENTO',type: 'png',typename: 'geocid:PORTO_MONIZ_ORDENAMENTO',id_layer: '135'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _12TMS.events.register('visibilitychanged', _12TMS, onChangeVisibilityLayer );var _13TMS = new OpenLayers.Layer.TMS('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'PORTO_MONIZ_CONDICIONANTES',type: 'png',typename: 'geocid:PORTO_MONIZ_CONDICIONANTES',id_layer: '138'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'PORTO_MONIZ_PLANEAMENTO',type: 'png',id_layer: '136'},{maxScale: 1,minScale: 500000,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('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'RIBEIRA_BRAVA_ORDENAMENTO',type: 'png',typename: 'geocid:RIBEIRA_BRAVA_ORDENAMENTO',id_layer: '113'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'RIBEIRA_BRAVA_CONDICIONANTES',type: 'png',typename: 'geocid:RIBEIRA_BRAVA_CONDICIONANTES',id_layer: '134'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'RIBEIRA_BRAVA_PLANEAMENTO',type: 'png',id_layer: '133'},{maxScale: 1,minScale: 500000,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('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'SANTA_CRUZ_ORDENAMENTO',type: 'png',typename: 'geocid:SANTA_CRUZ_ORDENAMENTO',id_layer: '107'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'SANTA_CRUZ_CONDICIONANTES',type: 'png',typename: 'geocid:SANTA_CRUZ_CONDICIONANTES',id_layer: '112'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _19TMS.events.register('visibilitychanged', _19TMS, onChangeVisibilityLayer );var _20TMS = new OpenLayers.Layer.TMS('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'SANTA_CRUZ_PLANEAMENTO',type: 'png',id_layer: '111'},{maxScale: 1,minScale: 500000,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});  _20TMS.events.register('visibilitychanged', _20TMS, onChangeVisibilityLayer );var _21TMS = new OpenLayers.Layer.TMS('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'SANTANA_ORDENAMENTO',type: 'png',typename: 'geocid:SANTANA_ORDENAMENTO',id_layer: '101'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _21TMS.events.register('visibilitychanged', _21TMS, onChangeVisibilityLayer );var _22TMS = new OpenLayers.Layer.TMS('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'SANTANA_CONDICIONANTES',type: 'png',typename: 'geocid:SANTANA_CONDICIONANTES',id_layer: '106'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _22TMS.events.register('visibilitychanged', _22TMS, onChangeVisibilityLayer );var _23TMS = new OpenLayers.Layer.TMS('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'SANTANA_PLANEAMENTO',type: 'png',id_layer: '105'},{maxScale: 1,minScale: 500000,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});  _23TMS.events.register('visibilitychanged', _23TMS, onChangeVisibilityLayer );var _24TMS = new OpenLayers.Layer.TMS('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'SAO_VICENTE_ORDENAMENTO',type: 'png',typename: 'geocid:SAO_VICENTE_ORDENAMENTO',id_layer: '97'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,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('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'SAO_VICENTE_CONDICIONANTES',type: 'png',typename: 'geocid:SAO_VICENTE_CONDICIONANTES',id_layer: '100'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'SAO_VICENTE_PLANEAMENTO',type: 'png',id_layer: '99'},{maxScale: 1,minScale: 500000,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});  _26TMS.events.register('visibilitychanged', _26TMS, onChangeVisibilityLayer );var _27TMS = new OpenLayers.Layer.TMS('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'FUNCHAL_ORDENAMENTO',type: 'png',typename: 'geocid:FUNCHAL_ORDENAMENTO',id_layer: '91'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,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('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'FUNCHAL_CONDICIONANTES',type: 'png',typename: 'geocid:FUNCHAL_CONDICIONANTES',id_layer: '96'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,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('Infante', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'funchal_pu_infante',type: 'png',id_layer: '1047'},{maxScale: 1,minScale: 60000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 1,singleTile: false,ratio: 1.5,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('Levada do Cavalo', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'funchal_pu_levada_cavalo',type: 'png',id_layer: '1048'},{maxScale: 1,minScale: 60000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 1,singleTile: false,ratio: 1.5,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _30TMS.events.register('visibilitychanged', _30TMS, onChangeVisibilityLayer );var _31TMS = new OpenLayers.Layer.TMS('Praia Formosa', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'funchal_pp_praia_formosa',type: 'png',id_layer: '1046'},{maxScale: 1,minScale: 60000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 1,singleTile: false,ratio: 1.5,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _31TMS.events.register('visibilitychanged', _31TMS, onChangeVisibilityLayer );var _32TMS = new OpenLayers.Layer.TMS('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'MACHICO_ORDENAMENTO',type: 'png',typename: 'geocid:MACHICO_ORDENAMENTO',id_layer: '84'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _32TMS.events.register('visibilitychanged', _32TMS, onChangeVisibilityLayer );var _33TMS = new OpenLayers.Layer.TMS('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'MACHICO_CONDICIONANTES',type: 'png',typename: 'geocid:MACHICO_CONDICIONANTES',id_layer: '88'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _33TMS.events.register('visibilitychanged', _33TMS, onChangeVisibilityLayer );var _34TMS = new OpenLayers.Layer.TMS('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'MACHICO_PLANEAMENTO',type: 'png',id_layer: '87'},{maxScale: 1,minScale: 500000,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});  _34TMS.events.register('visibilitychanged', _34TMS, onChangeVisibilityLayer );var _35TMS = new OpenLayers.Layer.TMS('Planta de Ordenamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'PORTO_SANTO_ORDENAMENTO',type: 'png',typename: 'geocid:PORTO_SANTO_ORDENAMENTO',id_layer: '80'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _35TMS.events.register('visibilitychanged', _35TMS, onChangeVisibilityLayer );var _36TMS = new OpenLayers.Layer.TMS('Planta de Condicionantes', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'PORTO_SANTO_CONDICIONANTES',type: 'png',typename: 'geocid:PORTO_SANTO_COND_AREAS',id_layer: '83'},{maxScale: 1,minScale: 500000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: true,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _36TMS.events.register('visibilitychanged', _36TMS, onChangeVisibilityLayer );var _37TMS = new OpenLayers.Layer.TMS('Planeamento', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'PORTO_SANTO_PLANEAMENTO',type: 'png',id_layer: '82'},{maxScale: 1,minScale: 500000,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});  _37TMS.events.register('visibilitychanged', _37TMS, onChangeVisibilityLayer );var _38TMS = new OpenLayers.Layer.TMS('Toponímia dos Lugares', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'lugaresMad',type: 'png',tipoid: '16',id_layer: '59'},{maxScale: 1,minScale: 20000,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});  _38TMS.events.register('visibilitychanged', _38TMS, onChangeVisibilityLayer ); return[_1TMS,_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,_31TMS,_32TMS,_33TMS,_34TMS,_35TMS,_36TMS,_37TMS,_38TMS]}function getControls(){var controls = {};controls.navigation=true;controls.get_information=true;controls.export_data=false;controls.measure=true;controls.draw_polygon=true;controls.modify_polygon=false;controls.print_visible=true;controls.print_pdm=false;controls.print_pip=false;controls.comboshortcut=true;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=false;controls.side = 'east';return controls;}
