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('Limites Administrativos (CAOP)', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_concelhos',type: 'png',globalid: '362;1',id_layer: '362'},{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});  _0TMS.events.register('visibilitychanged', _0TMS, onChangeVisibilityLayer );var _1TMS = new OpenLayers.Layer.TMS('Ortofotomapa', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_ortos_2009',type: 'png',globalid: '363;2',id_layer: '363'},{opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: app.optionsLayer.scales,resolutions: app.optionsLayer.resolutions,maxResolution: app.optionsLayer.maxResolution});  _1TMS.events.register('visibilitychanged', _1TMS, onChangeVisibilityLayer );var _2TMS = 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: 'oeiras_cartografia',type: 'png',id_layer: '430'},{maxScale: 1000,minScale: 10000,opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 landscape oeiras',scales: app.optionsLayer.scales,resolutions: app.optionsLayer.resolutions,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _2TMS.events.register('visibilitychanged', _2TMS, onChangeVisibilityLayer ); return[_0TMS,_1TMS,_2TMS]}function getOverLayers(){var _3TMS = new OpenLayers.Layer.TMS('Rede Ferroviária', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_pdm_rede_ferroviaria',type: 'png',id_layer: '417'},{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('Rede Viária e Toponímia', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_roteiro_eixos_via',type: 'png',globalid: '365;35',tipoid: '35',id_layer: '365'},{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});  _4TMS.events.register('visibilitychanged', _4TMS, onChangeVisibilityLayer );var _5TMS = new OpenLayers.Layer.TMS('Topónimos de Lugar', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_lugares',type: 'png',globalid: '396;34',tipoid: '34',id_layer: '396'},{maxScale: 1,minScale: 25000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: true,buffer: 0,singleTile: false,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution});  _5TMS.events.register('visibilitychanged', _5TMS, onChangeVisibilityLayer );var _6WFS = new OpenLayers.Layer.WFS('Serviços', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwfs=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2VvT2VpcmFzL3dmcw==?',{service: 'WFS',version: '1.0.0',request: 'GetFeature',typename: 'oeirasdigital:ROTEIRO_POIS',srsName: (app.map!=null) ? app.map.getProjectionObject() : '',globalid: '390;37',tipoid: '37',id_layer: '390'},{maxScale: 1,minScale: 10000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,singleTile: true,ratio: 1.5,extractAttributes: true,typename: 'ROTEIRO_POIS',useBbox: false,useFilterBbox: true,geometry_column: 'SHAPE',queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,sld_wfs: 'sld/oeiras_servicos_uteis.xml'});  _6WFS.events.register('loadstart', _6WFS, function() { layerLoading(true,'390'); }); _6WFS.events.register('loadend', _6WFS, function() { layerLoading(false,'390'); }); _6WFS.events.register('visibilitychanged', _6WFS, onChangeVisibilityLayer );var _7WFS = new OpenLayers.Layer.WFS('Equipamentos Culturais', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwfs=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2VvT2VpcmFzL3dmcw==?',{service: 'WFS',version: '1.0.0',request: 'GetFeature',typename: 'oeirasdigital:ROTEIRO_POIS',srsName: (app.map!=null) ? app.map.getProjectionObject() : '',globalid: '418;32',tipoid: '32',id_layer: '418'},{maxScale: 1,minScale: 10000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,singleTile: true,ratio: 1.5,extractAttributes: true,typename: 'ROTEIRO_POIS',useBbox: false,useFilterBbox: true,geometry_column: 'SHAPE',queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,sld_wfs: 'sld/oeiras_roteiro_culturais.xml'});  _7WFS.events.register('loadstart', _7WFS, function() { layerLoading(true,'418'); }); _7WFS.events.register('loadend', _7WFS, function() { layerLoading(false,'418'); }); _7WFS.events.register('visibilitychanged', _7WFS, onChangeVisibilityLayer );var _8WFS = new OpenLayers.Layer.WFS('Hotel', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwfs=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2VvT2VpcmFzL3dmcw==?',{service: 'WFS',version: '1.0.0',request: 'GetFeature',typename: 'oeirasdigital:ROTEIRO_POIS',srsName: (app.map!=null) ? app.map.getProjectionObject() : '',globalid: '394;30',tipoid: '30',id_layer: '394'},{maxScale: 1,minScale: 10000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,singleTile: true,ratio: 1.5,extractAttributes: true,typename: 'ROTEIRO_POIS',useBbox: false,useFilterBbox: true,useFilterTipo: true,tipo_column: 'TIPOPOI',geometry_column: 'SHAPE',iconUrl: 'images/mapa/temas/20x20/hotel.png',queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,sld_wfs: 'sld/oeiras_pontos_interesse.xml'});  _8WFS.events.register('loadstart', _8WFS, function() { layerLoading(true,'394'); }); _8WFS.events.register('loadend', _8WFS, function() { layerLoading(false,'394'); }); _8WFS.events.register('visibilitychanged', _8WFS, onChangeVisibilityLayer );var _9WFS = new OpenLayers.Layer.WFS('Pousadas', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwfs=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2VvT2VpcmFzL3dmcw==?',{service: 'WFS',version: '1.0.0',request: 'GetFeature',typename: 'oeirasdigital:ROTEIRO_POIS',srsName: (app.map!=null) ? app.map.getProjectionObject() : '',globalid: '395;31',tipoid: '31',id_layer: '395'},{maxScale: 1,minScale: 10000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,singleTile: true,ratio: 1.5,extractAttributes: true,typename: 'ROTEIRO_POIS',useBbox: false,useFilterBbox: true,useFilterTipo: true,tipo_column: 'TIPOPOI',geometry_column: 'SHAPE',iconUrl: 'images/mapa/temas/20x20/pousadas.png',queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,sld_wfs: 'sld/oeiras_pontos_interesse.xml'});  _9WFS.events.register('loadstart', _9WFS, function() { layerLoading(true,'395'); }); _9WFS.events.register('loadend', _9WFS, function() { layerLoading(false,'395'); }); _9WFS.events.register('visibilitychanged', _9WFS, onChangeVisibilityLayer );var _10WFS = new OpenLayers.Layer.WFS('Mercados Municipais', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwfs=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2VvT2VpcmFzL3dmcw==?',{service: 'WFS',version: '1.0.0',request: 'GetFeature',typename: 'oeirasdigital:ROTEIRO_POIS',srsName: (app.map!=null) ? app.map.getProjectionObject() : '',globalid: '392;27',tipoid: '27',id_layer: '392'},{maxScale: 1,minScale: 10000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,singleTile: true,ratio: 1.5,extractAttributes: true,typename: 'ROTEIRO_POIS',useBbox: false,useFilterBbox: true,useFilterTipo: true,tipo_column: 'TIPOPOI',geometry_column: 'SHAPE',iconUrl: 'images/mapa/temas/20x20/mercado.png',queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,sld_wfs: 'sld/oeiras_pontos_interesse.xml'});  _10WFS.events.register('loadstart', _10WFS, function() { layerLoading(true,'392'); }); _10WFS.events.register('loadend', _10WFS, function() { layerLoading(false,'392'); }); _10WFS.events.register('visibilitychanged', _10WFS, onChangeVisibilityLayer );var _11WFS = new OpenLayers.Layer.WFS('Centros Comerciais', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwfs=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2VvT2VpcmFzL3dmcw==?',{service: 'WFS',version: '1.0.0',request: 'GetFeature',typename: 'oeirasdigital:ROTEIRO_POIS',srsName: (app.map!=null) ? app.map.getProjectionObject() : '',globalid: '393;28',tipoid: '28',id_layer: '393'},{maxScale: 1,minScale: 10000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,singleTile: true,ratio: 1.5,extractAttributes: true,typename: 'ROTEIRO_POIS',useBbox: false,useFilterBbox: true,useFilterTipo: true,tipo_column: 'TIPOPOI',geometry_column: 'SHAPE',iconUrl: 'images/mapa/temas/20x20/centro_comercial.png',queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,sld_wfs: 'sld/oeiras_pontos_interesse.xml'});  _11WFS.events.register('loadstart', _11WFS, function() { layerLoading(true,'393'); }); _11WFS.events.register('loadend', _11WFS, function() { layerLoading(false,'393'); }); _11WFS.events.register('visibilitychanged', _11WFS, onChangeVisibilityLayer );var _12WFS = new OpenLayers.Layer.WFS('Outros', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwfs=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2VvT2VpcmFzL3dmcw==?',{service: 'WFS',version: '1.0.0',request: 'GetFeature',typename: 'oeirasdigital:ROTEIRO_POIS',srsName: (app.map!=null) ? app.map.getProjectionObject() : '',globalid: '397;26',tipoid: '26',id_layer: '397'},{maxScale: 1,minScale: 10000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,singleTile: true,ratio: 1.5,extractAttributes: true,typename: 'ROTEIRO_POIS',useBbox: false,useFilterBbox: true,useFilterTipo: true,tipo_column: 'TIPOPOI',geometry_column: 'SHAPE',iconUrl: 'images/mapa/temas/20x20/cafetaria.png',queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,sld_wfs: 'sld/oeiras_pontos_interesse.xml'});  _12WFS.events.register('loadstart', _12WFS, function() { layerLoading(true,'397'); }); _12WFS.events.register('loadend', _12WFS, function() { layerLoading(false,'397'); }); _12WFS.events.register('visibilitychanged', _12WFS, onChangeVisibilityLayer );var _13WFS = new OpenLayers.Layer.WFS('Restaurantes', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwfs=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2VvT2VpcmFzL3dmcw==?',{service: 'WFS',version: '1.0.0',request: 'GetFeature',typename: 'oeirasdigital:ROTEIRO_POIS',srsName: (app.map!=null) ? app.map.getProjectionObject() : '',globalid: '391;25',tipoid: '25',id_layer: '391'},{maxScale: 1,minScale: 10000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,singleTile: true,ratio: 1.5,extractAttributes: true,typename: 'ROTEIRO_POIS',useBbox: false,useFilterBbox: true,useFilterTipo: true,tipo_column: 'TIPOPOI',geometry_column: 'SHAPE',iconUrl: 'images/mapa/temas/20x20/restaurantes.png',queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,sld_wfs: 'sld/oeiras_pontos_interesse.xml'});  _13WFS.events.register('loadstart', _13WFS, function() { layerLoading(true,'391'); }); _13WFS.events.register('loadend', _13WFS, function() { layerLoading(false,'391'); }); _13WFS.events.register('visibilitychanged', _13WFS, onChangeVisibilityLayer ); return[_3TMS,_4TMS,_5TMS,_6WFS,_7WFS,_8WFS,_9WFS,_10WFS,_11WFS,_12WFS,_13WFS]}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=false;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=false;controls.side = 'east';return controls;}