{"id":1111,"date":"2022-03-02T15:26:49","date_gmt":"2022-03-02T15:26:49","guid":{"rendered":"https:\/\/horizontesibericos.com\/?page_id=1111"},"modified":"2024-04-30T21:34:27","modified_gmt":"2024-04-30T21:34:27","slug":"progreso-por-provincias","status":"publish","type":"page","link":"https:\/\/horizontesibericos.com\/?page_id=1111","title":{"rendered":"Progreso por Provincias"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">El n\u00famero de panor\u00e1micas posibles es infinito, se podr\u00eda hacer casi una panor\u00e1mica desde cada punto y ser\u00eda diferente, e incluso m\u00faltiples panor\u00e1micas desde el mismo punto en momentos diferentes. Pero buscando un indicador de lo que se podr\u00eda considerar una cobertura suficiente para conectar con visuales el territorio,  tomamos como base por un lado los v\u00e9rtices geod\u00e9sicos y por otro, cumbres que al menos tengan una prominencia de 100 metros.  y calculamos el  %  que tienen hecha una panor\u00e1mica obteniendo as\u00ed este mapa agrupado por provincias. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"txtot\">TOTAL:<\/p>\n\n\n\n<script src=\"\/GJSON\/funcionesHerr.js\"><\/script>\n<script src=\"\/GJSON\/leaflet.js\"><\/script>\n<link rel=\"stylesheet\" href=\"\/GJSON\/leaflet.css\">\n<script type=\"text\/javascript\" src=\"\/GJSON\/provincias.js\"><\/script>\n<script type=\"text\/javascript\" src=\"\/JQ-PANO\/assets\/php\/getPanosVerts.php\"><\/script>\n<script src=\"\/GJSON\/proj4.js\"><\/script>\n  <script>\n    var utm = \"+proj=utm +zone=30\";\n    var wgs84 = \"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs\";\n  <\/script>\n<style>\n#map {\n width: 100%;\n height: 580px;\n box-shadow: 5px 5px 5px #888;\n}\n#txtot {font-size: 16px;}\n.txtot {font-size: 16px;}\n.leaflet-interactive:hover { \n  fillColor: 'yellow',\n  weight: 0.5, \n  opacity: 1, \n  color: 'yellow', \n}\n<\/style>\n<div id=\"map\"><\/div>\n<div id=\"vermapa\"><a onclick=\"verMapa();\">Volver al Mapa general<\/a><\/div>\n<div id=\"lista\"><\/div>\n<div id=\"txt\"><\/div>\n<script>\nfunction getColor(prov) {\n   return (datos[prov*1] && datos[prov*1].Picos && datos[prov*1].Verts && datos[prov*1].Munis) ? \n      \"rgb(\"+Math.round(255*(1-datos[prov*1].Panp\/datos[prov*1].Picos))+\",\"\n\t        +Math.round(255*(1-datos[prov*1].Panv\/datos[prov*1].Verts))+\",\"+Math.round(255*(1-datos[prov*1].Panm\/datos[prov*1].Munis))+\")\": '#FFFFFF';\n} \nfunction style1(feature) { \nreturn { \n  fillColor: getColor(feature.properties.codigo), \n  weight: 0.5, \n  opacity: 1, \n  color: 'brown', \n  \/\/dashArray: '3', \n  fillOpacity: 0.7 \n  }; \n}\n\nfunction popup(feature, layer) { \n  if (feature.properties && feature.properties.provincia && datos[feature.properties.codigo*1]) { \n\t\tlayer.bindPopup(\"<b>\"+feature.properties.provincia+\"<\/b>\" + \n\t\t\"<br>V\u00e9rtices:\"+\n\t\tdatos[feature.properties.codigo*1].Panv+\"\/\"+datos[feature.properties.codigo*1].Verts+\" <b>\"+\n\t\tMath.round(100*(datos[feature.properties.codigo*1].Panv\/datos[feature.properties.codigo*1].Verts))+\"%<\/b>\"+\n\t\t\"<br>Picos p.:\"+\n\t\tdatos[feature.properties.codigo*1].Panp+\"\/\"+datos[feature.properties.codigo*1].Picos+\" <b>\"+\n\t\tMath.round(100*(datos[feature.properties.codigo*1].Panp\/datos[feature.properties.codigo*1].Picos))+\"%<\/b>\"+\n\t\t\"<br>Pueblos.:\"+\n\t\tdatos[feature.properties.codigo*1].Panm+\"\/\"+datos[feature.properties.codigo*1].Munis+\" <b>\"+\n\t\tMath.round(100*(datos[feature.properties.codigo*1].Panm\/datos[feature.properties.codigo*1].Munis))+\"%<\/b>\"); \n\t\tlayer.on( 'mouseover', function (e) { this.openPopup(); });\n\t\tlayer.on( 'mouseout', function (e)  { this.closePopup();});\t \n\t\tlayer.on( 'click', function (e) { ponDatosProv(feature.properties.codigo);});\t }\n}\nfunction verMapa() { \n\tdocument.getElementById(\"lista\").style.display = 'none';\n\tdocument.getElementById(\"map\").style.display = 'block';\n\tdocument.getElementById(\"vermapa\").style.display = 'none';\t\t\t\n}\nfunction ponDatosProv(prov,com='',pueb=0) { \n\tvar data = new FormData();\n\tdata.append('user','[wpmem_field user_login]');\n\tdata.append('prov',prov);\n\tdata.append('pueb',pueb);\n\tdata.append('tabla',1);\n\tif (com=='') { data.append('gc',1); } else { data.append('comc',com);};\t\t\n\tif (window.XMLHttpRequest) {\n\t\tvar xmlhttp = new XMLHttpRequest();   \/\/ code for IE7+, Firefox, Chrome, Opera, Safari\n\t} else {var xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");}   \/\/ code for IE6, IE5\n\txmlhttp.onreadystatechange = function() {\n\t  if (this.readyState == 4 && this.status == 200)  {\n\t\t\tdocument.getElementById(\"lista\").innerHTML=this.responseText;\n\t\t\tdocument.getElementById(\"lista\").style.display = 'block';\t\t\t\n\t\t\tdocument.getElementById(\"map\").style.display = 'none';\n\t\t\tdocument.getElementById(\"vermapa\").style.display = 'block';\t\t\t\n\t  }\n\t};\n\txmlhttp.open(\"POST\",\"\/JQ-PANO\/assets\/php\/getPanosVerts.php\",true);\n\txmlhttp.send(data);\n}\n\n var coordenadasUTM = [];\n var cxmax, cymax, cxmin, cymin;\n var dist=0, saltos=0;\n var cxp, cyp;\n\n var map = L.map('map').setView([40,-4],6 );\n L.tileLayer('http:\/\/{s}.tile.openstreetmap.org\/{z}\/{x}\/{y}.png', {\n attribution: 'Map data &copy; <a href=\"http:\/\/openstreetmap.org\">OpenStreetMap<\/a> contributors, <a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/2.0\/\">CC-BY-SA<\/a>, Imagery \u00a9 <a href=\"http:\/\/cloudmade.com\">CloudMade<\/a>', maxZoom: 18\n }).addTo(map);\n L.control.scale().addTo(map);\n  \n \/\/vSierras = L.geoJson(provincias).addTo(map);\n \/\/L.geoJson(provincias, { style: style1 }).addTo(map);\n geojson = L.geoJson(provincias, { style: style1, onEachFeature: popup }).addTo(map);\t \n var popup = L.popup();\n document.getElementById(\"vermapa\").style.display = 'none';\t\t\n document.getElementById(\"txtot\").innerHTML=\"TOTAL:  \"+\n    \"V\u00e9rtices: <b>\"+Math.round(100*(datos[0].Panv\/datos[0].Verts))+\"%<\/b> \"+\n    \"Picos prominentes.: <b>\"+Math.round(100*(datos[0].Panp\/datos[0].Picos))+\"%<\/b> \"+\n    \"Pueblos.: <b>\"+Math.round(100*(datos[0].Panm\/datos[0].Munis))+\"%<\/b> \";\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>El n\u00famero de panor\u00e1micas posibles es infinito, se podr\u00eda hacer casi una panor\u00e1mica desde cada punto y ser\u00eda diferente, e incluso m\u00faltiples panor\u00e1micas desde el mismo punto en momentos diferentes. Pero buscando un indicador de lo que se podr\u00eda considerar una cobertura suficiente para conectar con visuales el territorio, tomamos como base por un lado [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1111","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/horizontesibericos.com\/index.php?rest_route=\/wp\/v2\/pages\/1111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/horizontesibericos.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/horizontesibericos.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/horizontesibericos.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/horizontesibericos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1111"}],"version-history":[{"count":17,"href":"https:\/\/horizontesibericos.com\/index.php?rest_route=\/wp\/v2\/pages\/1111\/revisions"}],"predecessor-version":[{"id":1437,"href":"https:\/\/horizontesibericos.com\/index.php?rest_route=\/wp\/v2\/pages\/1111\/revisions\/1437"}],"wp:attachment":[{"href":"https:\/\/horizontesibericos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}