var textoFondoMapaNiveles = 4; var textoFondoMapaNivel = new Array(); var textoFondoMapa = new Array(); textoFondoMapaNivel[0] = 14010; textoFondoMapa[0] = "Fondo: MTN 25 IGN"; textoFondoMapaNivel[1] = 100010; textoFondoMapa[1] = "Fondo: MTN 50 IGN"; textoFondoMapaNivel[2] = 400010; textoFondoMapa[2] = "Fondo: MTN 200 IGN"; textoFondoMapaNivel[3] = 10000010; textoFondoMapa[3] = "Fondo: ME 500 IGN"; var textoFondoMapaPorDefecto = "MTN"; var textoFondoFotoNiveles = 3; var textoFondoFotoNivel = new Array(); var textoFondoFoto = ["Fondo: PNOA Año 2015 color", "Fondo: Ortofoto 1956-1957", "Fondo: SIG Oleícola año 1998", "Fondo: Plan Cartográfico de Aragón Año 2000", "Fondo: FEGA Año 2003", "Fondo: PNOA Año 2006 color", "Fondo: PNOA Año 2009 color", "Fondo: PNOA Año 2012 color", "Fondo: PNOA Año 2015 color"]; var textoFondoMudo = " "; function getTextoFondoFoto() { var idx = document.getElementById("ortoSelector").selectedIndex; if ((idx<0)||(idx >textoFondoFoto.length)){ idx=0; } return textoFondoFoto[idx];//(idxWMSFondoFoto); } function getTextoFondoMapa() { var escalaActual = map.getScale(); for (var i=0; i < textoFondoMapaNiveles; i++) { if (escalaActual <= textoFondoMapaNivel[i]) { return textoFondoMapa[i]; } } return textoFondoMapaPorDefecto; } function getTextoFondo() { if (orto.getVisibility()) { return getTextoFondoFoto(); } else if (topo.getVisibility()){ return getTextoFondoMapa(); } else{ return textoFondoMudo; } }var fondosConfig_loaded=true;