﻿
 
var estilosGeoJSON = {

	'Contorno': {
		fillColor: "#6d21f8", 		fillOpacity: 0.3, 			hoverFillColor: "#6d21f8",	hoverFillOpacity: 0.8,
		strokeColor: "#6d21f8", 	strokeOpacity: 1,			strokeWidth: 3,				strokeLinecap: "round",
		hoverStrokeColor: "red", 	hoverStrokeOpacity: 1,		hoverStrokeWidth: 0.2,
		pointRadius: 6,				hoverPointRadius: 1,		hoverPointUnit: "%", 		pointerEvents: "visiblePainted",
		cursor: "default"	},
		
	'ParcelaLibre': {
		fillColor: "#00ff00", 		fillOpacity: 0.3, 			hoverFillColor: "#00ff00",	hoverFillOpacity: 0.8,
		strokeColor: "#00ff00", 	strokeOpacity: 1,			strokeWidth: 3,				strokeLinecap: "round",
		hoverStrokeColor: "red", 	hoverStrokeOpacity: 1,		hoverStrokeWidth: 0.2,
		pointRadius: 6,				hoverPointRadius: 1,		hoverPointUnit: "%", 		pointerEvents: "visiblePainted",
		cursor: "default"	},
		
	'ParcelaVendida': {
		fillColor: "#ff0000", 		fillOpacity: 0.2, 			hoverFillColor: "#ff0000",	hoverFillOpacity: 0.8,
		strokeColor: "#ff0000", 	strokeOpacity: 1,			strokeWidth: 3,				strokeLinecap: "round",
		hoverStrokeColor: "red", 	hoverStrokeOpacity: 1,		hoverStrokeWidth: 0.2,
		pointRadius: 6,				hoverPointRadius: 1,		hoverPointUnit: "%", 		pointerEvents: "visiblePainted",
		cursor: "default"		},
		
	'ParcelaReservadaConSinal': {
		fillColor: "#ff5a00", 		fillOpacity: 0.2,			hoverFillColor: "#ff5a00",	hoverFillOpacity: 0.8,
		strokeColor: "#ff5a00", 	strokeOpacity: 1,			strokeWidth: 3,				strokeLinecap: "round",
		hoverStrokeColor: "red", 	hoverStrokeOpacity: 1,		hoverStrokeWidth: 0.2,
		pointRadius: 6,				hoverPointRadius: 1,		hoverPointUnit: "%", 		pointerEvents: "visiblePainted",
		cursor: "default"		},
		
	'ParcelaReservadaSenSinal': {
		fillColor: "#ffa200", 		fillOpacity: 0.2,			hoverFillColor: "#ffa200",	hoverFillOpacity: 0.8,
		strokeColor: "#ffa200", 	strokeOpacity: 1,			strokeWidth: 3,				strokeLinecap: "round",
		hoverStrokeColor: "red", 	hoverStrokeOpacity: 1,		hoverStrokeWidth: 0.2,
		pointRadius: 6,				hoverPointRadius: 1,		hoverPointUnit: "%", 		pointerEvents: "visiblePainted",
		cursor: "default"		},	
	
	'ZonasVerdes': {
		fillColor: "#86ff9a", 		fillOpacity: 0.2,			hoverFillColor: "#86ff9a",	hoverFillOpacity: 0.8,
		strokeColor: "#86ff9a", 	strokeOpacity: 1,			strokeWidth: 3,				strokeLinecap: "round",
		hoverStrokeColor: "red", 	hoverStrokeOpacity: 1,		hoverStrokeWidth: 0.2,
		pointRadius: 6,				hoverPointRadius: 1,		hoverPointUnit: "%", 		pointerEvents: "visiblePainted",
		cursor: "default"		},	
	'AreasRecreativas': {
		fillColor: "#ff5a00", 		fillOpacity: 0.2,			hoverFillColor: "#ff5a00",	hoverFillOpacity: 0.8,
		strokeColor: "#ff5a00", 	strokeOpacity: 1,			strokeWidth: 3,				strokeLinecap: "round",
		hoverStrokeColor: "red", 	hoverStrokeOpacity: 1,		hoverStrokeWidth: 0.2,
		pointRadius: 6,				hoverPointRadius: 1,		hoverPointUnit: "%", 		pointerEvents: "visiblePainted",
		cursor: "default"		},	
	'InstalacionsComuns': {
		fillColor: "#86fffb", 		fillOpacity: 0.2,			hoverFillColor: "#86fffb",	hoverFillOpacity: 0.8,
		strokeColor: "#86fffb", 	strokeOpacity: 1,			strokeWidth: 3,				strokeLinecap: "round",
		hoverStrokeColor: "red", 	hoverStrokeOpacity: 1,		hoverStrokeWidth: 0.2,
		pointRadius: 6,				hoverPointRadius: 1,		hoverPointUnit: "%", 		pointerEvents: "visiblePainted",
		cursor: "default"		},
		
	 'Nada': {
		  fillColor: "#444444",   fillOpacity: 0.,   hoverFillColor: "#ffffff", hoverFillOpacity: 0.8,
		  strokeColor: "#A3FF5F",  strokeOpacity: 0.9,   strokeWidth: 2,    strokeLinecap: "round",
		  hoverStrokeColor: "red",  hoverStrokeOpacity: 1,  hoverStrokeWidth: 0.2,
		  pointRadius: 6,    hoverPointRadius: 1,  hoverPointUnit: "%",   pointerEvents: "visiblePainted",
		  cursor: "default"  }
		
		
};



function fai_Zoom (bbox)
{
 bbox = bbox.replace("(","").replace(")","").replace("(","").replace(")","");
 var coords = bbox.split(",");
 var bounds = new OpenLayers.Bounds();
 bounds.extend(new OpenLayers.LonLat(coords[0],coords[1]));
 bounds.extend(new OpenLayers.LonLat(coords[2],coords[3]));
 
 //this.map.zoomToExtent(bounds,false);
 map.zoomToExtent(bounds,true);
 // if(map.getZoom() > 7)
 // { 
	// map.zoomTo(4);
 // }
// map.zoomTo(4);

}
function fai_Zoom2(bbox)
{
 bbox = bbox.replace("(","").replace(")","").replace("(","").replace(")","");
 var coords = bbox.split(",");
 var bounds = new OpenLayers.Bounds();
 bounds.extend(new OpenLayers.LonLat(coords[0],coords[1]));
 bounds.extend(new OpenLayers.LonLat(coords[2],coords[3]));
 
 //this.map.zoomToExtent(bounds,false);
 map.zoomToExtent(bounds,true);

 map.zoomTo(9);

}

function ver_ficha_espazo(idespazo){
	
    o_ficha_espazo = Crea_obx_HttpRequest();                                // Creamos o obxecto XMLHttpRequest.
    o_ficha_espazo.open('GET', 'ficha_info_capa.php?espazo=' + idespazo);
    o_ficha_espazo.onreadystatechange = function(){ 
        if (o_ficha_espazo.readyState == 4 ) { 
            hideContent();
            
            var datos = o_ficha_espazo.responseText;
            document.getElementById('contentText').innerHTML = datos;
            document.getElementById('content').style.zIndex = 1000;
            amosaFichaMediaPantalla();
        }
    }
    o_ficha_espazo.send('');    
}

function ver_ficha_espazo_info(){
    o_ficha_espazo = Crea_obx_HttpRequest();                                // Creamos o obxecto XMLHttpRequest.
    o_ficha_espazo.open('GET', 'informacion.php');
    o_ficha_espazo.onreadystatechange = function(){ 
        if (o_ficha_espazo.readyState == 4 ) { 
            hideContent();
            
            var datos = o_ficha_espazo.responseText;
            document.getElementById('contentText').innerHTML = datos;
             
            var div_vision_1 = document.getElementById('contentText'); 
            var div_vision = document.getElementById('content');         
            var div_medidas = document.getElementById('viewport'); 
            
            var Valor_medida_1 =  div_medidas.style.top;
            Valor_medida_1 = Valor_medida_1.split('px');
            var Valor_medida_1_b = Valor_medida_1[0];
            Valor_medida_1_b =  parseInt(Valor_medida_1_b);

            var Valor_medida_2 =  div_medidas.style.left;
            Valor_medida_2 = Valor_medida_2.split('px');
            var Valor_medida_2_b = Valor_medida_2[0];
            Valor_medida_2_b =  parseInt(Valor_medida_2_b);
                                                          
            Valor_medida_3_b =  3;
                                                          

            Valor_medida_1_b = Valor_medida_1_b +  Valor_medida_3_b;
            Valor_medida_2_b = Valor_medida_2_b +  Valor_medida_3_b;
                                                  
                                                                
            //div_vision_1.style.top = Valor_medida_1_b + 'px';
            //div_vision_1.style.left =  Valor_medida_2_b + 'px';    
            div_vision_1.style.height = div_medidas.style.height;
            div_vision_1.style.width = div_medidas.style.width;
            div_vision_1.style.visibility = 'visible';
            div_vision_1.style.zIndex = 1000;
            div_vision.style.top = Valor_medida_1_b + 'px';
            div_vision.style.left =  Valor_medida_2_b + 'px';    
            div_vision.style.height = div_medidas.style.height;
            div_vision.style.width = div_medidas.style.width;
            div_vision.style.visibility = 'visible';
        }
    }
    o_ficha_espazo.send('');    
}
/************* amosa_ficha_e_xeometrias *************/

var capas_kml = '16';
		
function amosa_ficha_e_xeometrias (info_datos)
{
	info_datos = info_datos.split('@@@www.sixtema.es@@@');

	
	var div_na_capa = document.getElementById('mapInfo'); 

	div_na_capa.innerHTML = info_datos[0];
	if(document.getElementById('img_pcapa@@@'+info_datos[1]))
        document.getElementById('img_capa@@@'+info_datos[1]).src =document.getElementById('img_pcapa@@@'+info_datos[1]).src;    

	ver_novo_div('mapInfo'); 	
 
/*	
	if( !document.getElementById('dhtmlgoodies_tabView1'))
	{
		var o_ancho = 335;
		var o_alto = '90%';
		if (navigator.appName == "Microsoft Internet Explorer") {
			o_ancho = 320;
			o_alto = '';
		}
		
		if( !document.getElementById('scroll_info_parcela') )
			initTabs('dhtmlgoodies_tabView1', Array('Xeral'),0,o_ancho, o_alto);
		else
			initTabs('dhtmlgoodies_tabView1', Array('Xeral'),0,o_ancho, o_alto);
		
		
		showTab('dhtmlgoodies_tabView1',1);showTab('dhtmlgoodies_tabView1',0);  #@# Rectificación estrańa para q funcione 
	}*/
	
	//document.getElementById("opcionMediaPantalla").style.visibility = "visible";
}  

/****************** destaca_elemento e desDestaca_elemento**********************************************************************/
//var geojson_format_destaca = new OpenLayers.Format.GeoJSON();

function destaca_elemento (xeo_datos){

	/* var aFeature = geojson_format_destaca.read(xeo_datos);
	
	aFeature[0].style = 
	{
		fillColor: "red", 			fillOpacity: 0.8, 		hoverFillColor: "white",	hoverFillOpacity: 0.8,
		strokeColor: "red", 		strokeOpacity: 1,		strokeWidth: 3,				strokeLinecap: "round",
		hoverStrokeColor: "red", 	hoverStrokeOpacity: 1,	hoverStrokeWidth: 0.2,
		pointRadius: 6,				hoverPointRadius: 1,	hoverPointUnit: "%", 		pointerEvents: "visiblePainted",
		cursor: "default"
	};	
		
	this.destaca_layer.addFeatures(aFeature);  */
}  


function desDestaca_elemento(){
	if ( this.busca_on != false){  
	   this.destaca_layer.destroy();
	   this.destaca_layer = new OpenLayers.Layer.Vector( "destaca_layer", this.options_b); 
	   this.map.addLayer(this.destaca_layer);
	}	
	this.busca_on = true;
}

	
/************* ver_info_parcela *************/
	
function ver_info_parcela(idelemento,idcapa){
	o_info_elemento = Crea_obx_HttpRequest();                   
    if(document.getElementById('capa@@@capasubcategoria_'+idcapa) != null
	&& document.getElementById('capa@@@capasubcategoria_'+idcapa).checked){
        var cambio = 'si';
    }
    else{
        var cambio = 'non';
    }
	o_info_elemento.open('GET', 'info_elemento_capa.php?elemento=' + idelemento + '&capa=' + idcapa + '&cambio=' + cambio);
	o_info_elemento.onreadystatechange = callback_ver_info_parcela;
	o_info_elemento.send('');
}
  
              
function callback_ver_info_parcela (){  
	if (o_info_elemento.readyState  == 4) {  
		var info_datos =  o_info_elemento.responseText;
		parent.amosa_ficha_e_xeometrias(info_datos);
	}
}   



/************* ver_info_BBox *************/

function ver_info_BBox( area_de_busca ){

	o_info_mapa = Crea_obx_HttpRequest();                                // Creamos o obxecto XMLHttpRequest.
	o_info_mapa.open('GET', 'info_mapa_box.php?Area=' + area_de_busca);
	o_info_mapa.onreadystatechange = callback_ver_info_BBox;  
	o_info_mapa.send('');
	
	var div_na_capa = document.getElementById('mapInfo'); 
	div_na_capa.innerHTML = htmlBuscandoEspacial;
	ver_novo_div('mapInfo'); 
}
   
function callback_ver_info_BBox( area_de_busca ){
	if (o_info_mapa.readyState  == 4) {
		var div_na_capa = document.getElementById('mapInfo'); 
		div_na_capa.innerHTML = o_info_mapa.responseText;
		ver_novo_div('mapInfo'); // Unha vez sacados os datos os presentamos.
		document.getElementById('os_resultados').innerHTML = document.getElementById('rsltTodos').innerHTML;
	}  
}



/************* ver_info_busca_texto *************/
function ver_info_busca_texto(valor, tipo){
	
	if( valor.length <3 )
	{
		document.getElementById("searchres").innerHTML ='Introduza como mínimo 3 caracteres para realizar a consulta, grazas';
		if(document.getElementById("searchres2")) { document.getElementById("searchres2").innerHTML ='Introduza como mínimo 3 caracteres para realizar a consulta, grazas';}
		return;
	}
	else
	{
		document.getElementById("searchres").innerHTML ='';
		if(document.getElementById("searchres2")) { document.getElementById("searchres2").innerHTML ='';}
	}
	
	var WEB_chamada='busca_x_texto.php?';
	busca_texto_nas_capas = Crea_obx_HttpRequest(); 
	
	var params = 'Palabras=' + valor + '&tipo=' + tipo;    
					  
	busca_texto_nas_capas.open('POST', WEB_chamada, true); 
	busca_texto_nas_capas.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=utf-8'"); 
	busca_texto_nas_capas.setRequestHeader("Content-length", params.length); 
	busca_texto_nas_capas.setRequestHeader("Connection", "close"); 
	
	busca_texto_nas_capas.onreadystatechange = function(){ 
		if (busca_texto_nas_capas.readyState == 4 ) { 
			 document.getElementById('mapInfo').innerHTML =  busca_texto_nas_capas.responseText ;
			 ver_novo_div('mapInfo'); // Unha vez sacados os datos os presentamos. 
			 //document.getElementById('os_resultados').innerHTML = document.getElementById('rsltTodos').innerHTML;
			 
			 if (navigator.appName != "Microsoft Internet Explorer") {
				document.getElementById('imgBuscar').style.top = '-1px';
				document.getElementById('btBuscar').style.top = '8px';
				document.getElementById('imgBuscar').style.left = '-2px';
				document.getElementById('imgBuscar').style.position = 'relative';
				document.getElementById('imgEnviar').style.top = '-1px';
				document.getElementById('btEnviar').style.top = '-6px';
				document.getElementById('imgEnviar').style.left = '-2px';
				document.getElementById('imgEnviar').style.position = 'relative';
				document.getElementById('imgGardar').style.top = '-1px';
				document.getElementById('btGardar').style.top = '9px';
				document.getElementById('imgGardar').style.left = '-2px';
				document.getElementById('imgGardar').style.position = 'relative';
			}
		}
	} 
	
	try {	busca_texto_nas_capas.send(params); }	catch(erro){	alert(erro.description);	}; 
	
	var div_na_capa = document.getElementById('mapInfo'); 
	div_na_capa.innerHTML = htmlBuscandoTexto;
	ver_novo_div('mapInfo'); 
}

function ver_info_busca_texto2(valor, tipo){
    
    var WEB_chamada='busca_x_texto.php?';
    busca_texto_nas_capas = Crea_obx_HttpRequest(); 
    
    var params = 'Palabras=' + valor + '&tipo=' + tipo;                    
    busca_texto_nas_capas.open('POST', WEB_chamada, true); 
    busca_texto_nas_capas.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=utf-8'"); 
    busca_texto_nas_capas.setRequestHeader("Content-length", params.length); 
    busca_texto_nas_capas.setRequestHeader("Connection", "close"); 
    
    busca_texto_nas_capas.onreadystatechange = function(){ 
        if (busca_texto_nas_capas.readyState == 4 ) { 
             document.getElementById('mapInfo').innerHTML =  busca_texto_nas_capas.responseText ;
             ver_novo_div('mapInfo'); // Unha vez sacados os datos os presentamos. 
             document.getElementById('os_resultados').innerHTML = document.getElementById('rsltTodos').innerHTML;
			 	
			if (navigator.appName != "Microsoft Internet Explorer") {
				document.getElementById('imgBuscar').style.top = '-1px';
				document.getElementById('btBuscar').style.top = '8px';
				document.getElementById('imgBuscar').style.left = '-2px';
				document.getElementById('imgBuscar').style.position = 'relative';
				document.getElementById('imgEnviar').style.top = '-1px';
				document.getElementById('btEnviar').style.top = '-6px';
				document.getElementById('imgEnviar').style.left = '-2px';
				document.getElementById('imgEnviar').style.position = 'relative';
				document.getElementById('imgGardar').style.top = '-1px';
				document.getElementById('btGardar').style.top = '9px';
				document.getElementById('imgGardar').style.left = '-2px';
				document.getElementById('imgGardar').style.position = 'relative';
			}
        }
    } 
    
    try {    busca_texto_nas_capas.send(params); }    catch(erro){    alert(erro.description);    }; 
    
    var div_na_capa = document.getElementById('mapInfo'); 
    //div_na_capa.innerHTML = 'Executando';//htmlBuscandoTexto;
    ver_novo_div('mapInfo'); 
}




function ver_info_busca_espacial(area, tipo){
	call( 'info_mapa_box.php?Area=' + area + '&tipo=' + tipo, this, ver_info_busca_espacial_callback);
	
    var div_na_capa = document.getElementById('mapInfo'); 
    ver_novo_div('mapInfo'); 
}

function ver_info_busca_espacial_callback( resposta)
{
  document.getElementById('mapInfo').innerHTML =  resposta ;
 ver_novo_div('mapInfo'); // Unha vez sacados os datos os presentamos. 
 document.getElementById('os_resultados').innerHTML = document.getElementById('rsltTodos').innerHTML;
}
/************* exportaKML *************/
function exportaKML(sender){

	/* for(var i=0; i < sender.childNodes.length; i++)
	{
		if( sender.childNodes[i].id == 'as_capas_kml')
		{
			var as_capas_kml = sender.childNodes[i].innerHTML;
			
			WOOpenWin( 'KML', 'openlayers_kml.php?mapa=1&capas=' + as_capas_kml, 'resizable=yes,scrollbars=yes,width=60,height=40' );
		}
	} */
	var concello = document.getElementById('selconcellos').value;
	var subcategorias = document.getElementById('subcategorias').value;
	if (concello != '' && subcategorias != ''){
		WOOpenWin( 'KML', 'openlayers_kml.php?concello='+concello+'&subcategoria='+subcategorias, 'resizable=yes,scrollbars=yes,width=60,height=40' );
	}else if(concello != ''){
		WOOpenWin( 'KML', 'openlayers_kml.php?concello='+concello, 'resizable=yes,scrollbars=yes,width=60,height=40' );
	}else if(subcategorias != ''){
		WOOpenWin( 'KML', 'openlayers_kml.php?subcategoria='+subcategorias, 'resizable=yes,scrollbars=yes,width=60,height=40' );
	}else{
		alert("Non hai ningunha capa seleccionada. Seleccione polo menos un concello ou unha categoria");	
	}
}

/**************************************/

// Opcións de constructor de capa GeoRSS de poligonos 
osize = new OpenLayers.Size(20,20);      	ocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
oicon = new OpenLayers.Icon( 'images/georss/poligono_vermello.gif', osize, null, ocalculateOffset);
 var options_rss = {	'icon': oicon,		'reproject': false,   		'isBaseLayer': false,  	projection:'EPSG:4326', 
	maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
	minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
	minResolution: 0.00000000000078125,		minZoomLevel: 1,		maxZoomLevel: 15,			numZoomLevels: 15,		units: 'degrees'   
};  
//*****************************************************************************
// Opcións de constructor de capa GeoRSS de poligonos 
ooutrosize = new OpenLayers.Size(20,20);	ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/1.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro1 = {	'icon': ooutroicon,		'reproject': false,		'isBaseLayer': false,		projection:'EPSG:4326', 
    visibility: false,   draw: false,  
	maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
	minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
	minResolution: 0.00000000000078125,		minZoomLevel: 4,		maxZoomLevel: 18, 			numZoomLevels: 15,		units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/2.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro2 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/3.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro3 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/4.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro4 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/5.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro5 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/6.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro6 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/7.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro7 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/8.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro8 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/9.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro9 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/10.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro10 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/11.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro11 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
ooutrosize = new OpenLayers.Size(20,20);    ooutrocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
ooutroicon = new OpenLayers.Icon( 'images/georss/12.png', ooutrosize, null, ooutrocalculateOffset);
 var options_rss_outro12 = {    'icon': ooutroicon,        'reproject': false,        'isBaseLayer': false,        projection:'EPSG:4326', 
    visibility: false,   draw: false,  
    maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
    minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
    minResolution: 0.00000000000078125,        minZoomLevel: 4,        maxZoomLevel: 18,             numZoomLevels: 15,        units: 'degrees'   
}; 
//***************************************************************************** 


// Opcións de constructor de capa GeoRSS de aeroportos 
oaerisize = new OpenLayers.Size(20,20);	oaericalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
oaeriicon = new OpenLayers.Icon( 'http://maps.google.com//mapfiles/ms/micons/plane.png', oaerisize, null, oaericalculateOffset);
 var options_rss_aero = {	'icon': oaeriicon,		'reproject': false,		'isBaseLayer': false,		projection:'EPSG:4326', 
	maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
	minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
	minResolution: 0.00000000000078125,		minZoomLevel: 4,		maxZoomLevel: 18, 			numZoomLevels: 15,		units: 'degrees'   
};

// Opcións de constructor de capa GeoRSS de portos 
aportosize = new OpenLayers.Size(20,20);	aportocalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
aportoicon = new OpenLayers.Icon( 'http://maps.google.com//mapfiles/ms/micons/ferry.png', aportosize, null, aportocalculateOffset);
 var options_rss_porto = {	'icon': aportoicon,		'reproject': false,		'isBaseLayer': false,		projection:'EPSG:4326', 
	maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
	minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
	minResolution: 0.00000000000078125,		minZoomLevel: 4,		maxZoomLevel: 18, 			numZoomLevels: 15,		units: 'degrees'   
};

// Opcións de constructor de capa GeoRSS de FFCC 
offccsize = new OpenLayers.Size(20,20);	offcccalculateOffset = function(size) { return new OpenLayers.Pixel(-10, -10); };
offccicon = new OpenLayers.Icon( 'http://maps.google.com//mapfiles/ms/micons/rail.png', offccsize, null, offcccalculateOffset);
 var options_rss_ffcc = {	'icon': offccicon,		'reproject': false,		'isBaseLayer': false,		projection:'EPSG:4326', 
	maxExtent: new OpenLayers.Bounds(-11.414794921875, 40.371658891506094, -3.768310546875, 45.26715476332791), 
	minExtent: new OpenLayers.Bounds(-0.0000000001, -0.0000000001, 0.0000000001, 0.0000000001), 
	minResolution: 0.00000000000078125,		minZoomLevel: 4,		maxZoomLevel: 18, 			numZoomLevels: 15,		units: 'degrees'   
};


