logoExtra: script.mapa_hispano

Descripción: Inicialización para el efecto de resalte de provincias y autonomías de España.


A continuación mostramos los apuntes asociados a este extra:

Mapa de España
Vamos a mostrar como se puede hacer un mapa de España interactivo tan solo con los recursos de la web. Ya habíamos adelantado en el apunte javascript: rollover en mapas que sería conveniente usar una imagen con colores planos para poder capturar las áreas con otro recurso (en este caso de mi autoría: Capturar áreas en imágenes).
// Descripción para sindicación:
/*
    [rss]Inicialización para el efecto de resalte de provincias y autonomías de España.[/rss]
*/
var ancho = 625;
var alto = 571;

function sortexto(a, b) {
    aaa = a.charAt(0).toLowerCase();
    bbb = b.charAt(0).toLowerCase();
    abc = "aábcdefghiíjklmnñoópqrstuúvwxyz";
    if (abc.indexOf(aaa) == abc.indexOf(bbb))
        return sortexto(a.substr(1), b.substr(1))
    else
        return (abc.indexOf(aaa) - abc.indexOf(bbb)); 
}

function tag(id)    {return document.getElementById(id);}
function crear(tag) {return document.createElement(tag);}

var areas = {
'Málaga': {'borde': '000000', 'color': 'FF0000', 'coors': '219,430,220,429,222,429,223,430,224,430,225,431,230,431,231,430,232,430,234,428,237,428,238,429,239,429,240,430,239,431,239,432,238,433,238,434,239,435,239,439,238,440,238,441,239,442,239,443,242,446,244,446,245,447,247,447,248,448,251,448,252,449,253,449,254,450,255,450,256,451,257,451,258,452,260,452,263,455,264,455,266,457,248,457,247,458,240,458,239,459,235,459,234,460,232,460,231,461,229,461,216,474,215,474,214,475,209,475,208,474,201,474,200,475,199,475,197,477,196,477,190,483,189,483,187,485,186,484,186,483,185,482,185,481,180,476,180,475,178,473,178,472,183,467,183,465,184,464,184,459,185,458,185,456,187,454,188,455,190,455,191,456,193,456,196,453,196,452,197,451,197,450,198,449,198,447,199,446,199,444,205,438,205,437,209,433,213,433,214,432,215,432,216,431,217,431,218,430'},
'Gerona': {'borde': '000000', 'color': 'FF0000', 'coors': '600,74,601,73,602,73,603,74,605,74,613,82,613,84,612,84,611,85,610,85,609,86,609,87,607,89,607,90,606,91,606,93,608,95,609,95,610,96,611,96,611,97,612,98,612,105,609,108,608,108,605,111,605,112,603,114,603,115,601,117,600,117,595,122,593,120,592,120,590,118,588,118,587,117,585,117,584,116,582,116,581,115,580,115,579,114,578,114,577,113,577,111,579,109,579,108,580,107,580,106,581,105,581,103,582,102,582,101,581,100,581,99,579,97,578,97,577,96,575,96,574,95,572,95,571,94,564,94,563,93,561,93,559,91,560,90,560,86,558,84,555,84,554,83,549,83,556,83,558,81,559,81,560,80,561,80,562,79,563,79,564,78,565,79,568,79,569,80,570,80,571,81,572,81,573,82,574,82,575,83,581,83,582,82,583,82,588,77,589,77,590,76,591,76,592,75,594,75,595,74'},
'Granada': {'borde': '000000', 'color': 'FF0000', 'coors': '290,408,291,407,293,407,294,406,296,406,297,405,299,405,300,404,306,404,307,403,310,403,311,402,313,402,317,398,317,397,318,396,318,394,319,393,319,392,320,391,320,390,321,389,321,388,322,387,322,386,327,381,328,381,333,376,334,376,335,375,337,375,338,376,340,376,341,377,342,377,345,380,345,384,344,385,344,393,343,394,343,398,342,399,342,400,341,401,341,402,337,406,336,406,330,412,330,413,329,414,329,415,328,416,328,417,326,419,326,420,324,422,324,423,320,427,319,427,318,428,316,428,314,430,314,431,312,433,312,434,311,435,311,436,310,437,310,438,309,439,309,441,308,442,308,450,307,451,306,451,304,453,303,453,301,455,300,455,299,456,297,456,296,457,294,457,293,458,290,458,289,459,287,459,286,460,285,460,284,459,283,459,281,457,279,457,278,456,272,456,272,455,268,451,267,451,265,449,264,449,263,448,262,448,261,447,260,447,259,446,258,446,257,445,256,445,255,444,253,444,252,443,250,443,249,442,247,442,246,441,245,441,244,440,244,439,245,438,245,435,244,434,244,432,245,431,245,429,246,428,246,427,247,426,247,425,250,422,250,421,251,421,252,420,264,420,265,419,266,419,270,415,271,415,272,414,274,414,275,413,278,413,279,412,280,412,283,409,284,409,285,408'},
'Almería': {'borde': '000000', 'color': 'FF0000', 'coors': '359,387,359,388,358,389,358,392,360,394,360,395,362,397,362,398,364,400,364,401,366,403,366,404,367,405,367,407,368,408,368,409,370,411,371,411,373,413,374,413,375,414,380,414,375,419,375,420,374,421,374,422,372,424,372,425,371,426,371,427,370,428,370,429,369,430,369,431,368,432,368,434,367,435,367,437,366,438,366,440,365,441,365,443,364,444,364,446,363,447,363,448,361,450,361,451,358,454,358,455,357,455,356,456,355,456,353,454,352,454,350,452,349,452,348,451,347,451,346,450,344,450,343,449,337,449,336,450,335,450,333,452,332,452,329,455,329,456,326,459,321,459,320,458,316,458,315,457,313,457,312,456,309,456,313,452,313,443,314,442,314,441,315,440,315,438,317,436,317,435,319,433,320,433,321,432,322,432,323,431,324,431,328,427,328,426,330,424,330,423,331,422,331,421,332,420,332,419,333,418,333,417,335,415,335,414,337,412,338,412,341,409,342,409,344,407,344,406,346,404,346,403,347,402,347,401,348,400,348,397,349,396,349,388,350,387,350,386,351,385,357,385'},
'Cádiz': {'borde': '000000', 'color': 'FF0000', 'coors': '162,450,163,449,165,449,166,448,168,448,169,449,174,449,175,448,177,448,178,447,179,447,180,446,183,446,185,448,192,448,192,449,191,450,189,450,188,449,184,449,180,453,180,456,179,457,179,461,178,462,178,464,173,469,173,472,172,473,172,474,174,476,174,477,177,480,177,481,180,484,180,485,181,486,181,487,182,488,182,489,181,490,181,491,180,492,178,492,177,493,176,493,175,494,175,495,174,496,174,497,173,498,173,499,172,500,172,501,171,502,171,503,170,504,168,504,166,502,165,502,162,499,161,499,160,498,159,498,158,497,157,497,156,496,155,496,153,494,152,494,151,493,150,493,149,492,146,492,144,494,144,493,143,492,143,491,140,488,140,487,137,484,137,483,136,482,136,480,139,477,139,476,140,475,140,474,137,471,137,470,136,469,135,469,131,465,130,465,127,462,126,462,126,461,125,460,125,458,126,457,126,456,128,454,128,453,129,453,131,451,132,451,133,450,136,450,143,457,145,457,146,456,148,456,149,455,151,455,152,454,153,454,154,453,155,453,156,452,158,452,159,451,160,451,161,450'},
'Huelva': {'borde': '000000', 'color': 'FF0000', 'coors': '106,369,106,370,107,371,108,371,109,372,110,372,110,373,112,375,112,376,114,378,126,378,127,379,129,379,130,380,134,380,136,382,136,386,135,387,135,388,134,388,133,389,127,389,126,390,125,390,124,391,123,391,122,392,122,393,119,396,119,398,118,399,118,400,119,401,119,402,123,406,123,407,125,409,125,410,126,411,126,423,125,424,125,443,124,444,124,447,116,439,115,439,112,436,111,436,109,434,108,434,104,430,103,430,99,426,99,425,98,424,97,424,96,423,92,423,91,424,90,424,88,426,87,425,85,425,84,424,80,424,79,423,77,423,76,422,75,422,75,421,74,420,74,415,73,414,73,411,72,410,72,407,71,406,71,402,72,401,72,400,74,398,74,397,75,396,75,395,77,393,77,392,79,390,79,389,80,388,80,387,82,385,82,384,83,383,83,382,86,379,86,378,90,374,91,374,92,373,95,373,96,372,97,372,101,368,102,368,103,367,104,367'},
'Sevilla': {'borde': '000000', 'color': 'FF0000', 'coors': '154,378,154,377,155,376,155,375,156,374,156,372,157,371,157,370,158,369,159,369,160,368,161,368,162,367,163,368,164,368,165,369,167,369,168,370,170,370,170,371,171,372,171,373,172,374,172,376,173,377,173,378,174,379,174,380,175,381,175,382,177,384,177,385,178,386,178,387,180,389,180,390,181,391,181,393,182,394,182,396,180,398,180,403,183,406,185,406,186,405,187,405,188,404,189,404,190,403,191,403,192,402,194,402,195,401,198,401,200,399,202,399,203,400,204,400,204,404,203,405,203,413,205,415,205,416,206,417,206,419,207,420,207,422,211,426,215,426,214,426,213,427,208,427,207,428,206,428,202,432,202,433,195,440,194,440,192,442,191,442,190,443,188,443,187,442,186,442,184,440,181,440,180,441,178,441,177,442,176,442,175,443,173,443,172,444,170,444,169,443,164,443,163,444,162,444,161,445,159,445,158,446,157,446,156,447,155,447,154,448,153,448,152,449,150,449,149,450,148,450,147,451,144,451,143,450,143,449,141,447,140,447,139,446,138,446,137,445,131,445,130,446,130,430,131,429,131,409,130,408,130,407,129,406,129,405,124,400,124,399,125,398,125,397,127,395,130,395,131,394,135,394,136,393,137,393,141,389,141,380,152,380'},
'Córdoba': {'borde': '000000', 'color': 'FF0000', 'coors': '222,345,223,345,226,348,227,348,229,350,230,350,232,352,233,352,234,353,235,353,236,354,237,354,238,355,239,355,242,358,242,363,243,364,243,365,245,367,245,368,244,369,244,370,243,371,243,372,242,373,242,374,241,375,241,379,240,380,240,385,241,386,241,391,242,392,242,396,243,397,243,400,244,401,244,403,245,404,245,405,246,406,246,407,247,408,247,409,252,414,252,415,250,415,249,416,248,416,246,418,245,418,243,420,243,421,242,422,242,424,240,424,239,423,238,423,237,422,234,422,233,423,232,423,231,424,230,424,229,425,228,425,227,426,226,425,225,425,220,420,215,420,214,421,213,421,212,420,212,418,211,417,211,415,210,414,210,413,209,412,209,411,208,410,208,407,209,406,209,398,206,395,205,395,204,394,203,394,202,393,198,393,195,396,192,396,191,397,190,397,189,398,187,398,187,392,186,391,186,390,185,389,185,388,184,387,184,386,183,385,183,384,182,383,182,382,180,380,180,379,179,378,179,377,178,376,178,375,177,374,177,373,176,372,176,370,175,369,175,367,177,365,177,359,176,358,176,350,177,349,177,348,178,347,178,346,180,344,185,344,196,333,197,333,198,332,199,332,200,331,203,331,204,332,205,332,206,333,206,334,209,337,209,338,210,339,212,339,213,340,214,340,215,341,216,341,217,342,218,342,219,343,220,343'},
'Jaén': {'borde': '000000', 'color': 'FF0000', 'coors': '286,353,287,352,288,352,290,350,291,350,292,349,293,349,294,350,295,350,296,351,312,351,313,350,315,350,316,349,317,349,319,347,320,347,321,346,327,346,329,348,330,348,331,349,331,350,334,353,334,354,335,355,335,357,336,358,336,360,335,361,335,363,334,364,334,365,333,366,333,367,332,368,332,369,329,372,329,373,328,374,327,374,323,378,322,378,318,382,318,383,317,384,317,385,316,386,316,387,315,388,315,389,314,390,314,392,313,393,313,394,312,395,312,396,311,397,308,397,307,398,302,398,301,399,297,399,296,400,294,400,293,401,291,401,290,402,287,402,286,403,283,403,282,404,281,404,279,406,278,406,277,407,276,407,275,408,274,408,273,409,271,409,270,410,269,410,268,411,267,411,266,412,265,412,262,415,260,413,259,413,251,405,251,404,250,403,250,402,249,401,249,399,248,398,248,395,247,394,247,391,246,390,246,378,247,377,247,375,248,374,248,373,249,372,249,371,250,370,250,368,251,367,251,366,250,365,250,364,248,362,248,361,247,360,247,354,255,354,256,355,264,355,266,353,267,353,269,355,271,355,272,356,273,356,277,352,278,352,279,351,281,353'},
'Badajoz': {'borde': '000000', 'color': 'FF0000', 'coors': '144,310,145,310,146,309,147,309,148,308,156,308,158,306,159,306,160,305,161,305,162,306,165,306,166,307,169,307,170,306,171,306,173,304,174,304,175,303,176,303,178,301,179,301,181,299,182,299,184,297,185,297,187,295,188,295,189,294,190,294,192,292,193,292,196,289,197,289,198,288,214,288,215,287,219,287,218,288,218,290,217,291,217,295,218,296,217,296,216,297,215,297,214,298,213,298,207,304,207,306,206,307,206,315,205,316,205,317,204,318,204,319,201,322,201,323,198,326,197,326,196,327,195,327,187,335,186,335,182,339,177,339,174,342,174,343,172,345,172,346,171,347,171,349,170,350,170,353,171,354,171,361,172,362,170,364,167,364,165,362,161,362,160,363,158,363,157,364,156,364,152,368,152,370,151,371,151,373,150,374,148,374,147,375,133,375,132,374,130,374,129,373,127,373,126,372,121,372,120,373,117,373,116,372,116,371,112,367,111,367,109,365,109,364,107,362,98,362,95,359,95,358,94,357,94,355,93,354,93,352,91,350,91,349,86,344,86,340,87,339,87,336,88,335,88,333,91,330,91,329,93,327,93,326,96,323,96,322,98,320,98,319,100,317,100,316,101,315,101,313,102,312,102,310,103,309,103,307,102,306,102,305,92,295,92,291,93,290,93,289,94,289,95,288,97,288,98,287,99,287,103,283,104,283,105,284,106,284,108,286,108,288,109,289,108,290,108,294,107,295,107,296,108,297,109,297,111,299,112,299,113,300,115,300,116,301,125,301,126,300,129,300,131,302,132,302,137,307,138,307,140,309,143,309'},
'Cáceres': {'borde': '000000', 'color': 'FF0000', 'coors': '143,218,146,221,146,222,147,223,147,224,150,227,151,227,154,230,155,230,157,232,160,232,162,230,163,230,164,229,166,229,167,230,168,230,173,235,174,235,175,236,183,236,184,237,184,241,182,243,182,251,183,252,183,256,184,257,184,258,185,259,188,259,188,264,190,266,194,266,194,268,193,269,192,269,190,271,190,272,200,282,199,282,198,283,196,283,195,284,194,284,192,286,191,286,189,288,188,288,186,290,185,290,183,292,182,292,180,294,179,294,178,295,177,295,175,297,174,297,172,299,171,299,170,300,169,300,168,301,166,301,165,300,163,300,162,299,159,299,157,301,156,301,155,302,149,302,148,303,146,303,145,304,143,304,142,303,141,303,138,300,137,300,133,296,132,296,131,295,125,295,124,296,118,296,117,295,115,295,113,293,113,292,114,291,114,286,113,285,113,284,109,280,108,280,107,279,106,279,105,278,100,278,96,282,95,282,94,283,92,283,91,284,90,284,89,285,89,284,88,283,88,281,87,280,87,278,82,273,82,272,79,269,79,268,96,268,97,267,98,267,104,261,105,261,106,260,106,259,108,257,108,256,109,255,109,252,110,251,110,237,111,236,111,234,112,233,112,232,113,231,117,231,118,230,121,230,122,229,124,229,125,228,126,228,129,225,130,225,133,222,134,222,137,219,138,219,139,218'},
'Murcia': {'borde': '000000', 'color': 'FF0000', 'coors': '394,350,394,345,392,343,392,342,391,341,391,340,394,337,394,335,395,334,395,333,397,331,399,331,400,330,408,330,408,331,410,333,410,334,412,336,412,337,413,338,413,343,412,344,412,347,413,348,413,349,414,350,414,351,415,352,415,353,416,354,416,356,417,357,417,359,416,360,416,361,415,362,415,363,414,364,414,368,415,369,415,371,416,372,416,373,418,375,418,376,421,379,421,380,425,384,426,384,426,386,424,388,424,389,423,390,423,391,422,392,422,398,421,399,416,399,415,400,413,400,412,401,409,401,408,402,400,402,399,403,397,403,395,405,394,405,390,409,390,411,389,411,388,412,387,412,386,411,385,411,383,409,376,409,373,406,373,405,372,404,372,403,371,402,371,401,370,400,370,399,368,397,368,396,366,394,366,393,364,391,364,388,365,387,365,386,364,385,364,384,361,381,360,381,359,380,355,380,354,379,351,379,349,377,349,376,353,372,353,371,362,362,362,361,364,359,365,359,366,358,371,358,375,354,379,354,383,358,385,358,387,356,388,356,391,353,392,353,393,352,393,351'},
'Ciudad Real': {'borde': '000000', 'color': 'FF0000', 'coors': '265,294,266,295,277,295,278,294,281,294,285,290,286,290,289,287,290,287,292,285,293,285,294,284,299,284,300,285,302,285,303,286,307,286,308,285,311,285,312,286,313,286,319,292,320,292,320,293,319,294,319,295,318,296,318,297,317,298,317,300,316,301,316,302,315,303,315,307,314,308,314,318,320,324,320,325,321,326,321,327,322,328,322,329,323,330,323,331,322,332,322,334,321,335,321,336,320,337,320,339,319,340,319,341,318,342,317,342,316,343,315,343,314,344,313,344,312,345,311,345,310,346,304,346,303,345,297,345,295,343,290,343,286,347,285,347,284,348,283,348,282,347,279,347,278,346,276,346,275,347,274,347,272,349,270,349,269,348,268,348,267,347,265,347,263,349,262,349,261,350,258,350,257,349,245,349,244,350,241,350,240,349,239,349,238,348,237,348,236,347,235,347,233,345,232,345,231,344,230,344,228,342,227,342,225,340,224,340,223,339,222,339,220,337,219,337,218,336,217,336,216,335,215,335,214,334,213,334,211,332,211,331,206,326,206,325,208,323,208,322,209,321,209,320,210,319,210,318,211,317,211,313,212,312,212,307,213,306,213,305,214,304,215,304,217,302,218,302,219,301,220,301,223,298,223,289,224,288,224,287,225,286,225,285,226,284,226,283,228,281,230,281,232,283,233,283,234,284,237,284,239,282,241,282,242,281,247,281,246,282,246,283,245,284,245,288,246,289,246,290,247,291,248,291,249,292,256,292,257,293,259,293,260,294'},
'Albacete': {'borde': '000000', 'color': 'FF0000', 'coors': '354,295,355,294,356,294,358,292,361,292,362,293,363,293,364,294,365,294,366,295,369,295,370,294,371,294,372,293,373,293,374,292,375,292,376,291,377,291,378,290,379,290,380,289,381,289,382,288,383,288,384,287,386,287,387,286,393,286,394,287,395,287,396,288,397,288,399,290,399,292,400,293,400,311,401,312,401,313,403,315,412,315,412,316,413,317,413,323,414,324,414,328,413,329,413,328,411,326,410,326,409,325,397,325,396,326,394,326,390,330,390,332,389,333,389,334,387,336,387,337,385,339,385,341,386,342,386,343,387,344,387,345,388,346,388,347,389,348,386,351,384,351,383,350,382,350,381,349,379,349,378,348,377,348,376,349,374,349,373,350,372,350,370,352,369,352,368,353,364,353,363,354,362,354,352,364,352,365,346,371,345,371,344,372,343,372,342,371,340,371,338,369,339,368,339,367,340,366,340,364,341,363,341,357,340,356,340,354,339,353,339,352,338,351,338,350,336,348,336,347,330,341,329,341,328,340,325,340,325,339,326,338,326,337,327,336,327,335,328,334,328,327,326,325,326,324,325,323,325,322,324,321,324,320,321,317,320,317,320,315,319,314,319,311,320,310,320,306,321,305,321,303,322,302,322,300,323,299,323,298,325,296,325,295,326,294,330,294,331,295,334,295,335,296,342,296,343,297,346,297,347,296,351,296,352,295'},
'Toledo': {'borde': '000000', 'color': 'FF0000', 'coors': '243,234,245,234,246,233,248,233,249,232,250,232,251,231,258,238,259,238,260,239,261,239,262,240,267,240,268,241,271,241,272,242,273,242,273,243,268,248,268,249,267,250,267,251,270,254,277,254,278,253,279,253,280,252,281,252,283,250,284,250,287,247,297,247,298,248,298,251,299,252,299,254,300,255,300,256,301,257,301,258,302,259,302,260,303,261,303,262,304,263,304,264,305,265,305,267,306,268,306,270,307,271,307,276,308,277,307,278,307,280,306,281,304,281,303,280,301,280,300,279,293,279,292,280,291,280,290,281,289,281,288,282,287,282,285,284,284,284,280,288,279,288,278,289,262,289,261,288,259,288,258,287,255,287,254,286,251,286,251,284,254,281,254,280,255,279,255,278,256,277,256,275,253,272,249,272,247,274,246,274,245,275,244,275,243,276,239,276,238,277,237,277,236,278,234,278,231,275,227,275,225,277,224,277,221,280,220,280,219,281,218,281,217,282,214,282,213,283,210,283,209,282,208,282,204,278,203,278,202,277,202,276,199,273,199,270,200,269,200,264,199,263,199,262,198,261,197,261,196,260,194,260,194,256,192,254,188,254,188,250,187,249,187,247,188,246,188,245,189,244,197,244,198,243,200,243,201,242,203,242,204,241,208,241,214,235,214,234,215,234,216,233,219,233,222,236,223,236,224,235,226,235,227,236,228,236,229,237,230,237,231,238,232,238,233,237,236,237,237,236,240,236,241,235,242,235'},
'Cuenca': {'borde': '000000', 'color': 'FF0000', 'coors': '353,207,354,208,355,208,356,209,357,209,358,210,359,210,362,213,362,214,363,215,363,216,366,219,366,220,368,222,368,223,372,227,373,227,374,228,375,228,376,229,377,229,378,230,379,230,380,231,381,231,383,233,383,234,385,236,385,237,390,242,391,242,392,243,393,243,394,244,396,244,397,245,398,245,399,246,399,247,398,248,398,250,397,251,397,258,394,261,392,261,387,266,387,267,386,268,386,269,385,270,385,272,384,273,384,278,385,279,385,282,383,282,382,283,381,283,380,284,378,284,377,285,376,285,375,286,374,286,373,287,372,287,371,288,370,288,369,289,366,289,365,288,364,288,363,287,361,287,360,286,357,286,353,290,351,290,350,291,346,291,345,292,341,292,340,291,337,291,336,290,332,290,331,289,325,289,324,288,323,288,321,286,320,286,316,282,315,282,313,280,313,273,312,272,312,269,311,268,311,266,310,265,310,263,309,262,309,261,308,260,308,259,307,258,307,257,306,256,306,255,305,254,305,253,304,252,304,248,303,247,303,245,302,244,303,243,303,242,309,236,310,236,312,234,312,233,314,231,314,230,315,229,315,224,316,223,316,222,317,221,318,221,319,220,324,220,325,219,330,219,332,217,332,216,333,215,333,214,334,213,334,212,338,212,343,207,344,207,345,206,350,206,351,207'},
'Ávila': {'borde': '000000', 'color': 'FF0000', 'coors': '210,175,212,177,217,177,220,174,220,177,221,178,221,180,225,184,225,188,226,189,226,190,227,191,227,192,229,194,230,194,230,195,231,196,231,198,232,199,232,203,233,204,233,207,236,210,237,210,238,209,239,209,239,210,237,212,237,213,236,214,236,215,233,218,233,219,229,223,229,224,227,226,227,227,224,230,223,230,221,228,220,228,219,227,216,227,215,228,214,228,213,229,212,229,206,235,204,235,203,236,201,236,200,237,199,237,198,238,197,238,196,239,192,239,191,238,190,238,189,237,189,236,188,235,188,234,187,233,187,232,185,230,180,230,179,231,177,231,175,229,174,229,174,228,171,225,171,224,172,223,172,222,174,220,180,220,182,218,183,218,184,217,184,216,185,215,185,213,183,211,182,211,184,209,185,209,188,206,189,206,192,203,193,203,199,197,200,197,202,195,202,177,204,175,205,175,206,174,207,174,208,173,209,174,210,174'},
'Salamanca': {'borde': '000000', 'color': 'FF0000', 'coors': '163,161,165,163,166,163,167,164,172,164,173,163,175,163,176,162,180,166,181,166,182,167,184,167,185,168,186,168,186,170,190,174,194,174,195,175,196,175,197,176,197,192,194,195,193,195,188,200,187,200,184,203,183,203,179,207,178,207,177,208,177,213,178,214,177,215,172,215,171,216,170,216,167,219,167,221,165,223,164,223,163,224,162,224,161,225,157,225,155,223,154,223,152,221,152,220,145,213,143,213,142,212,141,212,140,213,138,213,137,214,136,214,135,215,134,215,133,216,132,216,130,218,129,218,125,222,124,222,122,224,120,224,119,225,116,225,115,226,114,226,114,225,116,223,116,216,117,215,117,204,118,203,118,201,117,200,117,189,118,188,118,185,119,184,119,183,118,182,118,181,117,180,118,180,120,178,120,177,121,176,121,175,124,172,124,171,129,166,130,166,131,165,132,165,133,164,137,164,138,163,150,163,151,164,155,164,156,163,157,163,158,162,159,162,160,161'},
'Madrid': {'borde': '000000', 'color': 'FF0000', 'coors': '282,181,282,182,283,183,283,188,282,189,282,197,283,198,283,199,285,201,285,202,287,204,287,205,289,207,289,208,292,211,292,212,295,215,295,216,297,218,297,219,298,220,298,227,299,228,299,229,303,233,303,234,300,237,300,238,298,240,298,241,291,241,290,242,285,242,283,244,282,244,280,246,279,246,277,248,275,248,278,245,278,244,279,243,279,241,278,240,278,239,276,237,273,237,272,236,269,236,268,235,265,235,264,234,262,234,261,233,260,233,255,228,254,228,253,227,248,227,247,228,245,228,244,229,242,229,241,230,239,230,238,231,235,231,234,232,232,232,231,231,231,230,232,229,232,228,233,227,233,226,240,219,240,218,241,217,241,216,243,214,243,213,246,210,247,210,250,207,250,206,251,205,251,204,252,203,252,202,258,196,258,195,263,190,263,189,267,185,267,184,274,177,278,177'},
'Segovia': {'borde': '000000', 'color': 'FF0000', 'coors': '251,157,254,154,255,154,258,151,259,151,260,150,263,150,264,151,265,151,266,152,270,152,271,151,273,151,274,150,279,150,280,151,283,151,284,152,284,153,285,154,285,156,286,157,286,158,288,160,289,160,291,162,292,162,288,166,287,166,286,167,284,167,283,168,282,168,280,170,279,170,278,171,275,171,274,172,272,172,271,173,270,173,263,180,263,181,260,184,260,185,256,189,256,190,248,198,247,198,245,200,244,200,243,201,242,201,241,202,240,202,239,203,238,203,237,202,237,196,236,195,236,193,231,188,231,187,230,186,230,183,229,182,229,181,227,179,227,178,226,177,226,176,225,175,225,174,226,173,226,172,227,171,227,170,228,169,228,168,229,167,229,166,231,164,231,163,233,161,233,160,238,155,240,155,241,154,242,154,243,155,244,155,245,156,247,156,248,157'},
'Valladolid': {'borde': '000000', 'color': 'FF0000', 'coors': '213,115,214,116,215,116,216,117,217,117,218,118,219,118,221,120,222,120,223,121,224,121,225,122,227,122,228,123,229,123,230,124,233,124,234,125,236,125,237,126,240,126,241,127,244,127,245,128,247,128,248,129,249,129,251,131,251,132,252,133,252,134,253,135,253,137,254,138,254,140,256,142,256,143,258,145,258,146,257,146,256,147,255,147,253,149,252,149,250,151,247,151,246,150,245,150,244,149,239,149,238,150,237,150,236,151,235,151,233,153,232,153,229,156,229,157,227,159,227,160,225,162,225,163,224,164,224,165,221,168,220,168,218,170,217,170,215,172,211,168,207,168,206,169,204,169,203,170,198,170,197,169,192,169,192,165,193,164,193,161,192,160,192,157,191,156,192,155,192,153,193,152,193,151,194,150,194,146,193,145,193,143,192,142,192,140,191,139,191,137,190,136,190,134,189,133,190,133,192,131,192,130,193,129,193,126,194,125,194,123,193,122,193,118,192,117,192,116,191,115,191,114,190,113,190,112,189,111,189,109,190,108,190,107,192,105,193,105,194,104,195,104,196,103,201,103,202,104,208,104,208,110,209,111,209,113,210,114,211,114,212,115'},
'Zamora': {'borde': '000000', 'color': 'FF0000', 'coors': '150,109,151,108,153,108,154,107,155,107,158,110,164,110,165,111,171,111,172,110,173,110,174,111,175,111,177,113,177,114,179,116,179,117,182,120,183,120,184,121,188,121,188,127,185,130,185,131,184,132,184,135,185,136,185,138,186,139,186,140,187,141,187,142,188,143,188,145,189,146,189,147,187,149,187,150,186,151,186,156,187,157,187,162,184,162,179,157,178,157,177,156,175,156,174,157,173,157,172,158,171,158,170,159,169,158,167,158,165,156,164,156,163,155,160,155,159,156,158,156,157,157,156,157,155,158,154,158,153,159,152,158,145,158,144,157,143,157,142,158,139,158,140,158,141,157,142,157,143,156,144,156,148,152,148,149,149,148,149,147,148,146,148,144,147,143,146,143,143,140,141,140,140,139,139,139,138,138,136,138,135,137,134,137,132,135,132,134,133,133,133,131,134,130,134,128,133,127,133,126,127,120,126,120,125,119,124,119,123,118,117,118,116,119,115,119,114,118,113,118,111,116,110,116,110,115,113,112,114,112,119,107,120,107,121,106,121,105,122,104,122,103,123,103,124,104,125,104,126,105,127,105,128,106,130,106,131,107,135,107,136,106,137,106,138,105,140,105,141,104,142,105,143,105,147,109'},
'León': {'borde': '000000', 'color': 'FF0000', 'coors': '169,54,170,55,172,55,173,54,175,54,177,52,178,52,179,51,181,51,182,52,188,52,190,50,192,50,193,49,196,49,197,48,199,48,200,47,201,47,202,46,203,46,204,45,205,45,206,44,207,44,208,43,209,43,210,42,214,42,215,43,215,44,216,45,216,47,217,48,217,50,218,51,218,54,217,55,217,56,215,58,215,59,214,60,214,61,213,62,213,65,212,66,212,76,208,80,208,84,209,85,209,87,208,88,208,89,207,90,207,91,206,92,206,94,205,95,205,99,204,98,203,98,202,97,199,97,198,98,194,98,193,99,192,99,191,100,189,100,186,103,186,104,185,105,185,107,184,108,184,114,183,113,183,112,176,105,170,105,169,106,168,106,167,105,161,105,160,104,159,104,157,102,152,102,151,103,148,103,145,100,144,100,143,99,138,99,137,100,136,100,135,101,130,101,129,100,128,100,127,99,126,99,125,98,124,98,124,96,123,95,123,86,120,83,114,83,112,81,112,78,113,77,113,76,114,75,114,73,115,72,115,71,116,70,116,69,117,68,117,67,119,65,119,64,120,63,120,62,122,60,122,59,123,58,125,60,126,60,127,61,132,61,134,59,135,59,137,57,138,57,139,56,140,56,141,55,142,55,143,54,144,54,145,53,146,53,147,52,153,52,154,53,159,53,160,54'},
'Palencia': {'borde': '000000', 'color': 'FF0000', 'coors': '233,55,234,54,235,54,237,56,238,56,245,63,245,64,248,67,247,68,247,70,246,71,246,72,244,74,244,75,241,78,241,79,240,80,240,83,242,85,241,86,241,88,240,89,240,93,241,94,241,97,242,98,242,99,243,100,243,101,244,102,244,103,245,104,245,105,247,107,247,108,249,110,250,110,251,111,252,111,252,112,253,113,253,114,256,117,256,118,258,120,258,123,256,125,255,125,254,126,253,125,252,125,251,124,249,124,248,123,247,123,246,122,243,122,242,121,238,121,237,120,235,120,234,119,232,119,231,118,230,118,229,117,227,117,226,116,225,116,224,115,223,115,221,113,220,113,218,111,216,111,215,110,214,110,213,109,214,108,214,105,213,104,213,102,212,101,212,100,211,99,211,98,210,97,210,95,211,94,211,93,214,90,214,89,215,88,215,84,214,83,214,82,216,80,216,79,217,78,217,71,218,70,218,65,219,64,219,62,221,60,221,59,223,57,224,57,225,56,226,56,227,55'},
'Burgos': {'borde': '000000', 'color': 'FF0000', 'coors': '276,44,279,44,280,43,281,44,283,44,284,45,285,45,286,46,290,46,291,45,293,45,294,44,295,44,297,46,297,52,301,56,300,56,299,57,297,57,293,61,293,64,294,65,294,66,296,68,299,68,300,67,300,70,302,72,302,73,305,76,305,77,304,78,304,80,303,81,303,93,302,94,302,110,305,113,306,113,306,115,307,116,306,117,306,118,305,119,305,120,303,122,302,122,301,123,297,123,296,124,293,124,290,127,290,133,288,135,288,136,286,138,286,139,283,142,283,144,282,145,271,145,270,146,269,146,268,147,267,146,266,146,264,144,263,144,263,143,262,142,262,141,259,138,259,136,258,135,258,134,257,133,257,130,258,130,259,129,260,129,262,127,262,126,263,125,263,124,264,123,264,122,263,121,263,117,259,113,259,112,257,110,257,109,256,108,256,107,255,106,254,106,253,105,252,105,251,104,251,103,248,100,248,99,247,98,247,96,246,95,246,87,247,86,247,83,246,82,246,81,247,80,247,79,249,77,249,76,251,74,251,72,252,71,252,70,258,70,259,69,261,69,262,68,263,68,264,67,265,67,268,64,268,63,269,62,269,60,268,59,268,57,267,56,267,55,266,54,266,51,269,48,270,48,272,46,273,46,274,45,275,45'},
'Soria': {'borde': '000000', 'color': 'FF0000', 'coors': '320,113,321,114,321,116,322,117,322,118,323,119,326,119,327,118,328,118,329,117,330,117,333,114,333,113,334,112,335,112,336,111,337,111,338,110,344,110,345,111,346,111,347,112,347,115,350,118,351,118,352,119,353,119,354,120,361,120,362,119,364,121,364,126,363,127,363,132,364,133,364,135,363,136,362,136,361,137,359,137,358,138,357,138,355,140,355,141,354,142,354,146,355,147,355,149,356,150,356,151,353,151,352,152,351,152,349,154,349,162,350,163,350,167,351,168,351,170,352,171,352,172,350,172,349,173,342,173,341,172,336,172,335,171,333,171,333,169,327,163,326,163,325,162,324,162,323,161,320,161,319,160,318,160,317,159,316,159,315,158,314,158,313,159,312,159,311,160,310,160,309,161,304,161,303,160,299,160,298,159,296,159,293,156,292,156,291,155,291,153,290,152,290,151,288,149,288,145,290,143,290,142,292,140,292,139,294,137,294,136,295,135,295,134,296,133,296,129,299,129,300,128,303,128,304,127,306,127,308,125,308,124,313,119,314,119,315,118,316,118,317,117,317,116'},
'Guadalajara': {'borde': '000000', 'color': 'FF0000', 'coors': '333,176,334,177,339,177,340,178,351,178,352,177,354,177,355,176,356,176,357,175,358,175,359,174,361,174,368,181,369,181,370,182,371,182,372,183,374,183,375,184,377,184,377,186,376,187,376,188,375,189,375,195,376,196,376,199,377,200,377,203,375,203,374,204,373,204,371,206,371,207,370,208,370,210,371,211,371,214,368,214,367,213,367,210,363,206,362,206,361,205,360,205,359,204,358,204,357,203,355,203,354,202,353,202,352,201,343,201,342,202,341,202,340,203,339,203,337,205,337,206,336,206,335,207,333,207,332,208,331,208,329,210,329,211,326,214,322,214,321,215,317,215,316,216,315,216,311,220,311,222,310,223,310,227,309,228,309,230,307,230,306,229,306,228,304,226,304,224,303,223,303,219,302,218,302,216,301,215,301,214,299,212,299,211,296,208,296,207,293,204,293,203,290,200,290,199,289,198,289,197,288,196,288,195,287,194,287,190,288,189,288,188,289,187,289,183,288,182,288,181,287,180,287,179,286,178,286,177,284,175,284,173,285,172,288,172,289,171,290,171,291,170,292,170,296,166,296,165,300,165,301,166,310,166,311,165,313,165,314,164,315,165,317,165,318,166,320,166,321,167,323,167,324,168,325,168,328,171,328,174,330,176'},
'Teruel': {'borde': '000000', 'color': 'FF0000', 'coors': '418,173,419,172,420,172,421,171,423,171,424,170,425,170,428,167,428,166,429,165,429,163,432,160,433,160,434,161,435,161,437,163,438,163,439,164,442,164,443,165,445,165,446,166,447,166,448,167,450,167,451,168,452,168,458,174,459,174,460,175,462,175,463,174,465,174,466,173,467,173,470,176,470,181,469,182,469,185,468,186,468,188,467,189,467,190,465,192,463,192,462,191,458,191,457,190,450,190,449,191,448,191,447,192,446,192,444,194,443,194,438,199,438,200,440,202,440,203,441,204,441,205,442,206,442,207,443,208,443,213,442,214,442,216,441,217,441,218,438,221,438,223,436,225,435,225,434,224,433,224,429,228,429,230,428,231,428,232,429,233,428,234,428,235,425,238,424,238,423,239,422,239,417,244,417,245,416,246,416,248,414,246,413,246,411,244,410,244,409,243,410,242,410,238,406,234,405,234,404,233,403,233,402,232,401,232,400,231,398,231,397,230,392,230,391,231,388,231,383,226,382,226,381,225,380,225,379,224,378,224,377,223,376,223,373,220,376,217,376,216,377,215,377,214,376,213,376,209,377,208,380,208,382,206,382,200,381,199,381,194,380,193,380,191,381,190,381,189,383,187,383,185,385,183,386,183,389,180,389,179,390,178,391,178,392,177,393,177,394,176,396,176,399,173,400,173,401,172,403,172,404,173,405,173,406,174,407,174,408,175,411,175,412,174,415,174,416,173'},
'Alicante': {'borde': '000000', 'color': 'FF0000', 'coors': '442,322,443,321,445,321,446,320,448,320,449,319,451,319,452,318,454,318,455,317,457,317,458,316,459,316,460,315,461,316,463,316,464,317,465,317,466,318,467,318,468,319,469,319,470,320,471,320,472,321,473,321,474,322,474,324,470,328,469,328,468,329,467,329,463,333,463,334,462,335,462,336,461,337,460,337,459,338,457,338,452,343,452,344,450,346,447,346,446,347,444,347,441,350,441,351,440,352,440,353,439,354,439,358,438,359,437,359,434,362,434,363,433,364,433,367,432,368,432,374,430,376,430,379,429,380,423,374,423,373,421,371,421,370,420,369,420,367,419,366,420,365,420,364,421,363,421,362,424,359,424,358,423,357,423,356,422,355,422,354,421,353,421,352,420,351,420,350,419,349,419,347,418,346,418,343,419,342,419,340,418,339,418,334,419,333,419,325,420,326,423,326,424,327,429,327,432,330,434,330,435,329,436,329,439,326,439,324,441,322'},
'Valencia': {'borde': '000000', 'color': 'FF0000', 'coors': '440,263,441,262,442,262,443,261,444,261,445,260,447,260,450,263,449,264,449,267,448,268,448,271,447,272,447,275,446,276,446,279,445,280,445,289,447,291,447,292,449,294,449,298,451,300,451,301,453,303,453,304,454,305,454,306,455,307,455,309,456,310,456,311,455,312,454,312,453,313,451,313,450,314,448,314,447,315,445,315,444,316,442,316,441,317,439,317,438,318,437,318,434,321,434,324,432,322,425,322,424,321,422,321,420,319,419,319,419,317,418,316,418,314,417,313,417,312,416,311,415,311,414,310,406,310,406,299,405,298,405,291,404,290,404,288,403,287,403,286,402,285,401,285,399,283,398,283,397,282,396,282,395,281,394,281,393,280,392,280,390,278,390,276,389,275,389,274,390,273,390,271,392,269,392,268,393,268,395,266,396,266,401,261,401,260,402,259,402,253,403,252,403,250,404,249,404,245,404,246,405,247,406,247,408,249,409,249,411,251,412,251,414,253,415,253,416,254,419,254,420,253,423,256,425,256,427,258,427,259,430,262,431,262,432,263'},
'Castellón': {'borde': '000000', 'color': 'FF0000', 'coors': '459,196,460,197,467,197,468,196,471,196,473,198,474,198,482,206,483,206,482,207,482,208,481,209,481,210,480,211,480,212,479,213,479,214,478,215,478,216,477,217,477,218,476,219,476,220,475,221,475,222,474,223,474,224,472,226,472,227,470,229,470,230,468,232,468,233,465,236,465,237,459,243,459,244,457,246,457,247,456,248,456,249,454,251,454,252,453,253,453,254,452,255,452,256,451,257,449,255,447,255,446,254,445,254,444,255,443,255,442,256,441,256,440,257,439,257,438,258,433,258,432,257,432,256,431,255,431,254,430,253,429,253,427,251,426,251,425,250,424,250,422,248,422,246,423,245,424,245,426,243,427,243,429,241,430,241,433,238,433,237,434,236,434,230,437,230,438,229,440,229,442,227,442,226,443,225,443,224,446,221,446,219,447,218,447,215,448,214,448,206,447,205,447,204,446,203,446,202,445,201,445,200,448,197,449,197,450,196,451,196,452,195,455,195,456,196'},
'Tarragona': {'borde': '000000', 'color': 'FF0000', 'coors': '500,155,501,155,502,154,503,154,504,153,505,153,506,152,507,152,513,146,513,145,514,145,516,143,517,143,520,140,520,138,521,137,527,137,529,139,529,140,530,141,530,142,531,143,531,145,532,146,532,147,533,148,533,149,534,150,534,151,535,152,535,153,536,154,536,155,537,156,537,157,538,158,538,159,536,159,535,160,532,160,531,161,530,161,529,162,528,162,527,163,526,163,525,164,523,164,522,165,520,165,519,166,517,166,516,167,515,167,514,168,513,168,512,169,511,169,510,170,509,170,499,180,499,181,497,183,497,185,496,186,496,189,499,192,499,193,501,195,500,195,499,196,499,197,498,198,498,199,496,201,495,201,494,200,493,200,492,199,489,199,488,200,487,200,486,201,484,199,483,199,479,195,478,195,473,190,473,188,474,187,474,184,475,183,475,175,474,174,474,172,472,170,473,169,474,169,475,168,476,168,479,165,479,164,480,163,480,161,483,158,483,157,487,153,490,156,491,156,492,157,497,157,498,156,499,156'},
'Barcelona': {'borde': '000000', 'color': 'FF0000', 'coors': '555,95,557,97,558,97,559,98,562,98,563,99,568,99,569,100,573,100,574,101,575,101,576,102,576,103,575,104,575,105,574,106,574,107,571,110,571,114,576,119,577,119,578,120,579,120,580,121,583,121,584,122,586,122,587,123,588,123,589,124,590,124,590,126,589,126,587,128,586,128,585,129,584,129,577,136,576,136,575,137,574,137,573,138,571,138,570,139,569,139,567,141,567,142,561,148,560,148,558,150,557,150,556,151,553,151,548,156,547,156,546,157,543,157,543,156,542,155,542,154,541,153,541,152,540,151,540,149,539,148,539,147,538,146,538,145,537,144,537,143,536,142,536,141,535,140,535,139,534,138,534,137,533,136,533,135,532,134,532,133,531,132,531,131,532,130,532,125,531,124,531,122,535,122,537,120,538,120,540,118,540,117,542,115,542,113,541,112,541,108,542,107,542,100,543,99,543,96,544,95,544,93,545,92,545,91,547,89,548,89,549,88,553,88,554,89,554,90,553,91,553,92,555,94'},
'Lérida': {'borde': '000000', 'color': 'FF0000', 'coors': '520,69,521,69,522,70,526,70,529,67,530,67,531,68,532,68,535,71,533,71,529,75,529,77,530,78,531,78,532,79,543,79,544,80,541,83,541,86,540,87,540,89,539,90,539,93,538,94,538,97,537,98,537,105,536,106,536,109,535,110,535,111,536,112,536,114,533,117,529,117,528,118,527,118,526,119,526,126,527,127,527,129,525,131,521,131,520,132,518,132,515,135,515,137,512,140,511,140,507,144,507,145,505,147,504,147,503,148,502,148,500,150,499,150,498,151,497,151,496,152,494,152,493,151,492,151,489,148,486,148,485,149,484,149,478,155,478,153,479,152,479,146,480,145,480,132,481,131,481,130,487,124,487,123,488,122,488,121,489,120,489,119,490,118,490,116,491,115,491,109,492,108,492,106,493,105,493,104,494,103,494,102,495,101,495,98,496,97,496,83,495,82,495,77,494,76,494,74,493,73,493,72,492,71,492,70,490,68,490,67,489,66,489,65,488,64,488,63,486,61,486,60,485,59,485,58,486,58,487,57,488,58,489,58,490,59,491,59,492,60,494,60,495,61,498,61,499,62,501,62,502,63,503,63,504,64,505,64,506,65,507,65,508,66,509,66,510,67,514,67,515,66,516,67,517,67,518,68,519,68'},
'Menorca': {'borde': '000000', 'color': 'FF0000', 'coors': '619,252,620,252,621,253,622,253,622,254,621,254,620,255,619,255,618,256,615,256,614,257,608,257,608,256,607,255,608,254,608,253,609,252,610,252,611,251,612,251,613,250,614,250,615,251,618,251'},
'Mallorca': {'borde': '000000', 'color': 'FF0000', 'coors': '575,268,576,269,577,269,578,268,581,268,582,267,584,267,585,268,585,269,586,270,586,274,585,275,585,276,584,277,584,278,583,279,583,280,581,282,581,283,577,287,576,287,575,288,574,287,570,287,569,286,568,286,567,285,566,285,565,284,562,284,560,286,558,286,557,285,556,285,554,283,554,282,555,281,555,280,556,279,556,278,566,268,567,268,569,266,571,266,572,265,574,265,574,266,575,267'},
'Ibiza': {'borde': '000000', 'color': 'FF0000', 'coors': '526,297,527,298,527,299,526,300,526,301,525,302,525,303,523,305,522,305,521,306,520,306,519,307,518,307,517,306,517,303,521,299,522,299,523,298,524,298,525,297'},
'Zaragoza': {'borde': '000000', 'color': 'FF0000', 'coors': '383,121,384,121,385,120,386,120,387,119,388,119,390,117,391,117,394,114,394,111,393,110,393,109,392,108,392,107,390,105,390,104,389,103,389,101,388,100,388,95,389,94,389,92,390,91,390,90,391,89,391,88,392,87,392,86,395,83,395,82,405,72,405,75,406,76,406,81,407,82,407,84,408,85,408,86,409,87,409,91,410,92,410,94,411,95,411,96,412,97,415,97,415,99,414,100,414,103,415,104,415,105,413,107,413,112,414,113,414,114,419,119,421,119,422,120,423,120,428,125,428,127,429,128,429,131,430,132,430,133,433,136,435,136,436,137,438,137,439,138,440,138,442,140,443,140,445,142,445,143,447,145,447,146,448,147,448,148,449,149,449,150,450,151,450,152,452,154,453,154,454,155,461,155,462,154,463,154,464,153,466,153,467,152,469,152,470,151,473,151,473,158,474,159,474,162,472,164,471,164,468,167,465,167,464,168,463,168,462,169,461,169,458,166,457,166,454,163,453,163,452,162,451,162,450,161,449,161,448,160,447,160,446,159,441,159,439,157,438,157,437,156,436,156,434,154,432,154,431,155,430,155,425,160,425,161,424,162,424,163,423,164,423,165,422,165,421,166,420,166,419,167,417,167,416,168,414,168,413,169,409,169,408,168,406,168,405,167,399,167,398,168,397,168,395,170,394,170,393,171,392,171,391,172,389,172,388,173,387,173,386,174,386,175,382,179,381,179,380,180,379,179,377,179,376,178,375,178,374,177,373,177,372,176,371,176,365,170,364,170,362,168,359,168,358,169,357,169,356,168,356,167,355,166,355,160,354,159,354,157,358,157,361,154,361,149,360,148,360,145,359,144,359,143,360,142,363,142,364,141,365,141,370,136,370,133,369,132,369,127,370,126,370,122,369,121,369,120,368,119,369,119,370,120,372,120,373,121,374,121,375,122,382,122'},
'Huesca': {'borde': '000000', 'color': 'FF0000', 'coors': '458,69,459,68,483,68,486,71,486,72,487,73,487,74,488,75,488,76,489,77,489,79,490,80,490,89,491,90,491,94,490,95,490,99,489,100,489,101,488,102,488,103,487,104,487,105,486,106,486,114,485,115,485,117,483,119,483,120,479,124,479,125,475,129,475,130,474,131,474,136,475,137,475,142,473,144,472,144,471,145,470,145,469,146,468,146,467,147,466,147,465,148,463,148,462,149,460,149,459,150,456,150,454,148,454,147,453,146,453,145,451,143,451,142,450,141,450,140,445,135,444,135,442,133,440,133,439,132,438,132,437,131,436,131,434,129,434,124,432,122,432,121,428,117,427,117,426,116,425,116,423,114,422,114,421,113,420,113,419,112,419,111,418,110,420,108,420,96,421,95,421,94,420,93,420,92,419,91,415,91,415,90,414,89,414,87,413,86,413,82,412,81,412,78,411,77,411,74,410,73,410,68,411,67,411,66,415,62,415,61,416,60,419,60,420,61,422,61,423,62,425,62,426,63,428,63,429,64,437,64,438,65,442,65,443,66,445,66,446,67,447,67,448,68,450,68,451,69'},
'Navarra': {'borde': '000000', 'color': 'FF0000', 'coors': '388,47,391,50,392,50,393,51,394,51,395,52,396,52,397,53,399,53,400,54,402,54,403,55,413,55,411,57,411,58,397,72,397,73,388,82,388,83,387,84,387,85,386,86,386,87,385,88,385,90,384,91,384,93,383,94,383,102,384,103,384,105,385,106,385,107,386,108,386,109,388,111,388,112,386,114,385,114,384,115,383,115,382,116,381,116,380,117,377,117,376,116,374,116,373,115,372,115,371,114,369,114,368,113,367,113,367,112,368,112,371,109,371,108,372,107,372,106,370,104,370,103,368,101,368,100,363,95,363,94,359,90,358,90,356,88,354,88,353,87,349,87,348,86,344,86,343,85,342,85,342,83,341,82,341,79,340,78,340,77,343,74,343,72,344,71,344,68,345,67,345,65,346,64,346,61,347,60,347,59,349,57,350,57,356,51,356,50,357,49,357,48,358,47,358,46,360,44,360,43,362,41,362,40,365,37,365,36,369,32,370,32,371,33,372,33,373,34,374,34,375,35,378,35,379,36,381,36,382,37,382,40,381,41,381,46,383,48,385,48,386,47'},
'Guipúzcoa': {'borde': '000000', 'color': 'FF0000', 'coors': '349,34,355,34,356,33,357,33,358,32,359,32,362,29,363,29,363,30,362,31,362,32,359,35,359,36,356,39,356,40,354,42,354,43,352,45,352,46,351,47,351,49,349,51,348,51,346,53,345,53,344,54,342,54,341,53,336,53,335,52,332,52,331,51,331,50,332,49,332,48,334,46,334,44,335,43,335,39,338,36,341,36,342,35,348,35'},
'Vizcaya': {'borde': '000000', 'color': 'FF0000', 'coors': '325,30,328,30,329,31,331,31,332,32,332,34,331,35,331,36,330,37,330,38,329,39,329,44,328,45,324,45,322,47,321,47,320,48,315,48,314,47,314,46,313,45,313,44,312,43,312,42,309,39,306,39,305,40,303,40,302,41,300,41,299,40,298,40,297,39,291,39,290,40,286,40,289,37,292,37,293,36,297,36,298,35,300,35,301,36,302,36,303,37,306,37,308,35,308,34,309,33,309,29,310,28,320,28,321,29,324,29'},
'Álava': {'borde': '000000', 'color': 'FF0000', 'coors': '323,53,324,52,326,52,326,53,327,54,327,55,329,57,332,57,333,58,338,58,339,59,340,59,340,66,339,67,339,69,338,70,338,71,334,75,334,78,335,79,335,80,336,81,336,83,335,82,325,82,322,79,321,79,320,78,319,78,317,76,316,76,315,75,314,75,313,74,312,74,310,72,309,72,306,69,306,68,305,67,305,64,303,62,300,62,301,62,302,61,305,61,307,59,307,55,306,54,306,53,302,49,302,48,305,45,308,45,308,47,309,48,309,49,311,51,312,51,313,52,314,52,315,53'},
'La Rioja': {'borde': '000000', 'color': 'FF0000', 'coors': '335,88,336,89,338,89,339,90,341,90,342,91,346,91,347,92,351,92,352,93,353,93,354,94,355,94,362,101,362,102,365,105,365,106,366,107,365,108,364,108,360,112,360,114,359,115,356,115,355,114,354,114,353,113,353,112,352,111,352,110,351,109,351,108,350,107,349,107,348,106,347,106,346,105,336,105,335,106,333,106,326,113,326,112,325,111,325,110,324,109,324,108,323,107,319,107,312,114,312,113,311,112,311,111,307,107,307,98,308,97,308,83,309,82,309,80,310,79,311,79,312,80,313,80,314,81,315,81,316,82,317,82,320,85,321,85,323,87,324,87,325,88,326,88,327,87,333,87,334,88'},
'Cantabria': {'borde': '000000', 'color': 'FF0000', 'coors': '252,27,254,27,255,26,257,26,258,25,261,25,262,24,264,24,265,23,278,23,283,28,287,28,288,29,293,29,294,30,295,30,295,31,291,31,290,32,288,32,287,33,286,33,284,35,283,35,282,36,281,36,279,38,277,38,276,39,274,39,273,40,272,40,271,41,270,41,268,43,267,43,261,49,261,51,260,52,260,54,261,55,261,57,262,58,262,59,263,60,263,62,262,63,260,63,259,64,258,64,257,65,256,65,255,64,254,64,253,63,252,63,239,50,238,50,237,49,236,49,235,48,233,48,232,49,231,49,230,50,225,50,224,51,223,50,223,49,222,48,222,45,221,44,221,40,222,39,222,38,223,37,224,37,225,36,227,36,228,35,230,35,233,32,233,31,234,30,235,31,242,31,243,30,245,30,246,29,248,29,249,28,251,28'},
'Asturias': {'borde': '000000', 'color': 'FF0000', 'coors': '146,20,147,21,148,21,150,19,152,19,153,18,155,18,156,17,157,17,158,18,167,18,170,15,171,15,172,16,175,16,176,17,178,17,179,18,184,18,185,19,188,19,189,20,191,20,192,21,193,21,195,23,196,23,197,24,198,24,199,25,203,25,204,24,207,24,208,23,209,23,210,24,211,24,214,27,215,27,216,28,227,28,228,29,228,30,227,31,224,31,223,32,221,32,217,36,217,37,209,37,208,38,206,38,205,39,204,39,203,40,202,40,201,41,200,41,198,43,197,43,196,44,191,44,190,45,188,45,187,46,186,46,185,47,184,47,183,46,177,46,176,47,175,47,174,48,173,48,172,49,171,49,170,50,169,49,162,49,161,48,157,48,156,47,153,47,152,46,147,46,146,47,144,47,143,48,142,48,141,49,140,49,138,51,137,51,135,53,134,53,133,54,132,54,131,55,128,55,127,54,126,54,125,53,121,53,120,52,120,51,119,50,119,49,121,47,121,46,122,45,122,42,121,41,121,40,120,39,117,39,116,38,114,38,112,36,112,35,111,34,111,32,110,31,110,26,111,25,111,20,113,18,131,18,132,19,137,19,138,20,139,20,140,19,143,19,144,20'},
'Lugo': {'borde': '000000', 'color': 'FF0000', 'coors': '101,15,103,15,104,16,105,16,105,33,106,34,106,37,107,38,107,39,111,43,112,43,113,44,116,44,115,45,114,45,113,46,111,46,109,48,109,52,111,54,116,54,116,55,117,56,117,57,116,58,116,60,114,62,114,63,113,64,113,65,112,66,112,67,111,68,111,69,110,70,110,71,109,72,109,74,108,75,108,76,107,77,107,83,108,84,108,86,105,89,104,89,103,88,102,88,101,87,99,87,98,86,93,86,92,85,84,85,83,84,82,84,80,82,79,82,78,81,77,81,76,80,75,80,73,78,72,78,69,75,69,66,68,65,68,56,69,55,69,54,70,53,70,51,71,50,71,48,72,47,72,30,73,29,73,27,74,26,74,25,78,21,79,21,80,20,80,19,82,17,82,15,83,14,83,6,84,5,84,2,85,2,87,4,88,4,89,5,90,5,92,7,93,7'},
'La Coruña': {'borde': '000000', 'color': 'FF0000', 'coors': '40,27,44,27,45,26,49,26,50,27,55,27,57,25,57,22,56,21,56,19,55,18,55,15,54,14,55,13,56,13,59,10,60,10,62,8,63,8,67,4,67,3,69,3,70,2,73,2,74,3,78,3,78,12,77,13,77,15,74,18,73,18,70,21,70,22,69,23,69,24,68,25,68,28,67,29,67,46,66,47,66,49,65,50,65,51,61,55,60,55,59,56,57,56,56,57,50,57,49,58,47,58,46,59,44,59,43,60,36,60,35,61,34,61,28,67,21,67,20,68,19,68,18,69,17,69,16,70,14,70,13,69,13,68,14,67,14,66,18,62,18,58,16,56,12,56,10,54,10,52,9,51,9,50,8,49,8,48,7,47,6,47,5,46,3,46,2,45,2,40,3,39,3,38,6,35,7,35,8,34,12,34,13,33,15,33,16,32,17,32,20,29,21,29,23,27,27,27,28,28,39,28'},
'Pontevedra': {'borde': '000000', 'color': 'FF0000', 'coors': '37,66,38,66,39,65,45,65,46,64,48,64,49,63,54,63,55,62,57,62,58,61,60,61,61,60,62,60,62,62,63,63,63,67,64,68,64,71,62,73,61,73,60,74,58,74,57,75,56,74,55,74,54,75,51,75,50,76,49,76,48,77,47,77,46,78,46,79,45,80,45,84,44,85,44,87,45,88,45,90,46,91,46,93,47,94,47,95,48,96,48,98,47,99,47,100,43,104,42,104,41,105,34,105,33,106,29,106,28,107,26,107,25,108,24,108,23,109,22,109,21,110,21,111,19,113,19,114,18,115,17,115,17,114,16,113,16,109,15,108,16,107,16,105,17,104,17,103,18,103,24,97,24,96,25,95,25,93,24,92,19,92,25,86,25,84,23,82,23,81,22,80,23,79,23,78,24,77,25,77,28,74,29,74'},
'Orense': {'borde': '000000', 'color': 'FF0000', 'coors': '74,85,75,86,76,86,78,88,79,88,80,89,81,89,82,90,89,90,90,91,96,91,97,92,98,92,99,93,101,93,102,94,108,94,112,90,113,90,114,89,115,89,116,88,118,88,117,89,117,90,118,91,118,93,119,94,119,96,118,97,118,99,117,100,117,101,115,103,115,104,112,107,111,107,110,108,109,108,105,112,105,113,104,114,103,114,99,118,99,119,98,120,98,121,97,122,97,123,96,123,95,124,92,124,90,122,84,122,83,123,82,122,81,122,80,121,79,121,77,119,72,119,71,120,70,120,69,121,68,121,67,120,66,120,65,119,64,119,63,118,62,118,59,121,58,121,56,123,52,123,51,122,51,121,50,120,50,118,51,117,51,111,52,110,52,106,50,104,52,102,52,101,53,100,53,95,52,94,52,92,51,91,51,89,50,88,50,82,51,81,52,81,53,80,60,80,61,79,63,79,64,78,65,78,65,79,69,83,71,83,73,85'},
'Lanzarote': {'borde': '000000', 'color': 'FF0000', 'coors': '596,473,597,474,597,476,598,477,598,478,597,479,597,480,596,480,595,481,594,481,593,482,589,482,586,485,586,486,584,488,581,485,582,484,582,481,583,480,583,479,584,478,584,477,586,475,587,475,588,474,590,474,591,473'},
'Fuerteventura': {'borde': '000000', 'color': 'FF0000', 'coors': '581,493,582,494,582,499,583,500,583,508,582,509,582,510,581,511,581,513,580,514,580,516,579,517,579,518,578,519,577,519,576,520,573,520,572,521,569,521,568,522,566,522,563,525,563,526,562,526,561,527,560,527,559,528,556,528,555,527,554,527,555,526,556,526,557,525,558,525,561,522,562,522,563,521,563,520,565,518,565,517,566,516,566,515,567,514,567,513,568,512,568,511,569,510,569,509,570,508,570,507,571,506,571,504,572,503,572,502,573,501,573,500,574,499,574,497,575,496,575,495,576,494,577,494,578,493'},
'Gran Canaria': {'borde': '000000', 'color': 'FF0000', 'coors': '513,522,514,521,515,521,515,522,516,523,516,526,517,527,517,530,518,531,518,536,514,540,513,540,512,541,511,541,510,542,509,542,508,543,505,543,504,542,502,542,496,536,496,535,495,534,495,532,496,531,496,530,498,528,498,527,505,520,506,520,507,521,508,521,509,522'},
'Tenerife': {'borde': '000000', 'color': 'FF0000', 'coors': '472,502,474,502,475,501,481,501,482,502,483,502,483,503,481,505,480,505,474,511,474,512,472,514,472,515,471,516,471,519,470,520,470,522,469,523,469,525,466,528,465,528,463,530,460,530,459,529,458,529,455,526,455,525,454,524,454,523,452,521,452,520,451,519,451,517,450,516,450,515,449,514,449,512,450,512,451,511,453,511,454,510,460,510,461,509,463,509,464,508,465,508,467,506,468,506'},
'La Gomera': {'borde': '000000', 'color': 'FF0000', 'coors': '436,520,437,520,438,521,438,522,439,523,439,524,438,525,438,526,436,528,431,528,430,527,430,526,429,525,429,524,428,523,429,522,429,520,430,519,435,519'},
'La Palma': {'borde': '000000', 'color': 'FF0000', 'coors': '410,487,410,488,411,489,411,493,410,494,410,496,409,497,409,498,408,499,408,501,406,503,405,502,405,501,404,500,404,499,403,498,403,497,402,496,402,494,401,493,401,490,400,489,400,488,402,486,409,486'},
'El Hierro': {'borde': '000000', 'color': 'FF0000', 'coors': '403,538,403,539,404,540,404,541,403,542,403,544,402,545,402,546,401,547,398,547,396,545,395,545,393,543,392,543,391,542,391,541,393,539,394,539,395,538,396,538,397,537,402,537'},
'Formentera': {'borde': '000000', 'color': 'FF0000', 'coors': '532,315,531,316,530,315,530,312,531,312,532,313'}
};
var ceuta_melilla = {
'Ceuta': {'borde': '000000', 'color': 'FF0000', 'coors': '164,526,163,525,164,525,165,526'},
'Melilla': {'borde': '000000', 'color': 'FF0000', 'coors': '260,559,261,558,262,559,261,560'}
};

if (window.onload != "")
    resguardamos_mapa = window.onload;
window.onload = function() {
    if (resguardamos_mapa != undefined) resguardamos_mapa();
    array_areas = [];
    for (a in areas)
        array_areas.push(a);
    array_areas.sort(sortexto);
    for (a in ceuta_melilla)
        array_areas.push(a);

//array_areas.push({'Ceuta': {'borde': '000000', 'color': 'FF0000', 'coors': '164,526,163,525,164,525,165,526'}});

//'Melilla': {'borde': '000000', 'color': 'FF0000', 'coors': '260,559,261,558,262,559,261,560'}
//);
    for (i = 0, total = array_areas.length; i < total; i++) {
        imagen = crear("img");
        imagen.src = "provincias_hispanas/pngshape" + i + ".png";
        nom = array_areas[i].split(" ").join("_");
        imagen.setAttribute("name", nom);
        imagen.style.visibility = "hidden";
        imagen.alt = "pngshape" + i + ".png";
        imagen.title = "pngshape" + i + ".png";
/*
        imagen.onerror = function()    {
            crearImagen(this);
        };
*/
        tag("areas_mapa").appendChild(imagen);
poner_evento(imagen, "error", crearImagen); 
    }
    array_comunidades = [];
    for (c in comunidad)    {
        enlace = "<a name='" + c.split(" ").join("_") + "' href='http://es.wikipedia.com/wiki/" + c;
        enlace+= "' onmouseover='mostrarComunidad(this.name)' ";
        enlace+= " onmouseout='ocultarComunidad(this.name)'>" + c + "</a>";
        array_comunidades.push(enlace);
    }
    tag("lista_comunidades").innerHTML = array_comunidades.join(", ") + ".";// + poneras();;

    for (i = 0, ars = tag("mapa").getElementsByTagName("area"), total = ars.length; i < total; i++)    {
        ars[i].onmouseout = function()    {
            ocultarArea(this.title.split(" ").join("_"));
        }
        ars[i].onmouseover = function()    {
            mostrarArea(this.title.split(" ").join("_"));
        }
        tag("lista_areas").getElementsByTagName("a")[i].onmouseout = function()    {
            ocultarArea(this.title.split(" ").join("_"));
        }
        tag("lista_areas").getElementsByTagName("a")[i].onmouseover = function()    {
            mostrarArea(this.title.split(" ").join("_"));
        }
    }
}

function crearImagen() {
cual = this;
    if (cual.src.indexOf("exportar") > 0)    {
        __src = cual.src.split("=")[1].split("&")[0];
    }
    else    {
        __src = "provincias_hispanas/pngshape.php?exportar=" + cual.alt;
        __src += "&ancho=" + ancho + "&alto=" + alto;
        __src += "&shape=poly&borde=" + areas[cual.name].borde;
        __src += "&relleno=" + areas[cual.name].color;
        __src += "&coors=" + areas[cual.name].coors;
    }
    cual.src = __src;alert(__src + "popup1");
}

function crear(tag) {return document.createElement(tag);}
function ocultarArea(cual)    {
    document.images[cual].style.visibility = "hidden";
    if (document.anchors[cual] != undefined)
        document.anchors[cual].style.backgroundColor = "transparent";
}

function mostrarArea(cual)    {
    document.images[cual].style.visibility = "visible";
    if (document.anchors[cual] != undefined)
        document.anchors[cual].style.backgroundColor = "yellow";
}

var comunidad = {
    "Andalucía": ["Almería", "Cádiz", "Córdoba", "Granada", "Huelva", "Jaén", "Málaga", "Sevilla"],
    "Aragón": ["Huesca", "Teruel", "Zaragoza"],
    "Principado de Asturias": ["Asturias"],
    "Baleares": ["Ibiza", "Formentera", "Mallorca", "Menorca"],
    "Canarias": ["El Hierro", "Fuerteventura", "Gran Canaria", "La Gomera", "La Palma", "Lanzarote", "Tenerife"],
    "Comunidad de Cantabria": ["Cantabria"],
    "Castilla-La Mancha": ["Albacete", "Ciudad Real", "Cuenca", "Guadalajara", "Toledo"],
    "Castilla y León": ["Ávila", "Burgos", "León", "Palencia", "Salamanca", "Segovia", "Soria", "Valladolid", "Zamora"],
    "Cataluña": ["Barcelona", "Gerona", "Lérida", "Tarragona"],
    "Comunidad Valenciana": ["Alicante", "Castellón", "Valencia"],
    "Extremadura": ["Badajoz", "Cáceres"],
    "Galicia": ["La Coruña", "Lugo", "Orense", "Pontevedra"],
    "La Rioja (España)": ["La Rioja"],
    "Comunidad de Madrid": ["Madrid"],
    "Reino de Navarra": ["Navarra"],
    "País Vasco": ["Álava", "Guipúzcoa", "Vizcaya"],
    "Región de Murcia": ["Murcia"]
}

function ocultarComunidad(cual)    {
    for (i = 0, total = comunidad[cual.split("_").join(" ")].length; i < total; i++)    {
        ocultarArea(comunidad[cual.split("_").join(" ")][i].split(" ").join("_"))
    }
}

function mostrarComunidad(cual)    {
    for (i = 0, total = comunidad[cual.split("_").join(" ")].length; i < total; i++)
        mostrarArea(comunidad[cual.split("_").join(" ")][i].split(" ").join("_"))
}

function poneras() {
    as = [];
    for (i = 0, total = array_areas.length; i < total; i++) {
        a = array_areas[i];
        poner = "\\t<a href=&#34;http://es.wikipedia.com/wiki/" + a + "&#34; ";
        poner+= "name=&#34;" + a.split(" ").join("_") + "&#34; title=&#34;" + a + "&#34; >" + a + "</a>";
        as.push(poner);
    }
    return "<form><textarea style='width: 100%; height: 200px'>" + as.join(",\\n") + "</textarea></form>\\n"; 
}

Este código ha sido leído en 538 ocasiones.

Zona de comentarios

Esta extra aún no tiene comentarios.

Evaluación

Valoración de esta página: (extra.script.mapa_hispano) valor

Valoración evaluar evaluar evaluar evaluar evaluar evaluar evaluar evaluar evaluar evaluar

Respuesta: Zona de mensajes (proceso de evaluación)

Listados: imágenes, categorías, etiquetas, extras | Anuarios: 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 | Otros enlaces: buscador