CP-076-03 - FACTORÍA - INDICADORES ASSDA
Caso Prueba montaje indicadores ASSDA
by gdtel_mapea_test
HTML
<link rel="stylesheet" href="https://sigc.desarrollo.guadaltel.es/mapea42_factoria/plugins/printer/printer.min.css">
<link rel="stylesheet" href="https://sigc.desarrollo.guadaltel.es/mapea42_factoria/assets/css/mapea.ol.min.css">
<script src="https://sigc.desarrollo.guadaltel.es/mapea42_factoria/vendor/browser-polyfill.js"></script>
<script src="https://sigc.desarrollo.guadaltel.es/mapea42_factoria/js/mapea.ol.min.js"></script>
<script src="https://sigc.desarrollo.guadaltel.es/mapea42_factoria/js/configuration.js"></script>
<script src="https://sigc.desarrollo.guadaltel.es/mapea42_factoria/plugins/printer/printer.ol.min.js"></script>
<script src="https://sigc.desarrollo.guadaltel.es/mapea42_factoria/plugins/attributetable/attributetable.ol.min.js"></script>
<link rel="stylesheet" href="https://sigc.desarrollo.guadaltel.es/mapea42_factoria/plugins/attributetable/attributetable.min.css">
<div id="PanelTipologia" class="closePanel panel">
<input type="checkbox" onclick="tipologiaFilter()" name="panel" value="11"> CÁDIZ
<br>
<input type="checkbox" onclick="tipologiaFilter()" name="panel" value="29">MÁLAGA
<br>
<input type="checkbox" onclick="tipologiaFilter()" name="panel" value="04">ALMERÍA
<br>
<input type="checkbox" onclick="tipologiaFilter()" name="panel" value="41">SEVILLA<br>
<input type="checkbox" onclick="tipologiaFilter()" name="panel" value="18">GRANADA<br>
<input type="checkbox" onclick="tipologiaFilter()" name="panel" value="23">JAÉN
<br>
<input type="checkbox" onclick="tipologiaFilter()" name="panel" value="21">HUELVA
<br>
<input type="checkbox" onclick="tipologiaFilter()" name="panel" value="14">CÓRDOBA
<br>
</div>
<button id="categoria" onclick="openPanel()">Provincias</button>
<button id="categoria" onclick="removeFilter()">Quitar filtros</button>
<button id="categoria" onclick="porcentajes()">Porcentajes</button>
<button id="categoria" onclick="absolutos()">Valores abosolutos</button>
<button id="categoria"...
CSS
html,
body {
margin: 0;
padding: 0;
height: 100%;
overflow: scroll;
}
.m-popup {
position: fixed;
bottom: inherit;
left: initial;
top: 0;
right: 0;
z-index: 9999;
}
.m-popup:before {
border-top-color: initial;
border-width: 0;
left: inherit;
margin-left: 0;
}
.m-popup:after,
.m-popup:before {
top: 0;
border: inherit;
content: " ";
height: 0;
width: 0;
position: inherit;
pointer-events: inherit;
}
.m-popup tr:nth-child(odd) {
background-color: rgba(41, 105, 168, 0.78);
color: white;
}
.tooltip {
position: relative;
padding: 3px;
background: rgba(0, 0, 0, 0.9);
color: white;
opacity: 0.7;
white-space: nowrap;
font: 10pt sans-serif;
}
#categoria {
background-color: rgba(55, 126, 235, 0.64);
padding: 6px;
border: 2px solid black;
}
.panel {
display: none;
padding: 10px;
background-color: #f6f6f6;
width: 200px;
cursor: pointer;
}
.closePanel {
display: none;
}
.openPanel {
display: block;
position: fixed;
bottom: inherit;
left: initial;
top: 0;
right: 0;
z-index: 9999;
border: 6px solid #5e8fb7;
}
JavaScript
// CP-076-03 - INDICADORES ASSDA
// Prueba orientada a verificar el correcto funcionamiento de indicadores haciendo uso de capa de indicadores de ASSDA
// INDICADOR - PRESTACIONES A NIVEL MUNICIPAL - assda_sv10_ayuntamiento_point_indicadores
// 1.- Verificar correcta visualización
// 2.- Verificar aplicación filtro por provincia - Botón Provincia
// 3.- Verificar quitar filtros
// 4.- Función porcentajes
// 5.- Función valores abosolutos
// 6.- Probar correcta aplicación de cluster
// 7.- Probar correcta aplicación de cluster con gráficas filtradas
function openPanel() {
if (document.getElementById("PanelTipologia").className.indexOf("openPanel") >= 0) {
document.getElementById("PanelTipologia").classList.remove("openPanel");
document.getElementById("PanelTipologia").classList.add("closePanel");
} else {
document.getElementById("PanelTipologia").classList.add("openPanel");
document.getElementById("PanelTipologia").classList.remove("closePanel");
}
}
var mapajs = M.map({
'container': 'map',
"controls": ["layerswitcher", "mouse", "scale", "overviewmap", "panzoombar", "scaleline", ],
"getfeatureinfo": "plain",
bbox: [193000, 4013700, 261500, 4061500]
});
var ayuntamientos = new M.layer.WFS({
name: "assda_sv10_ayuntamiento_point_indicadores",
url: "https://clientes.guadaltel.es/desarrollo/geossigc/wfs?",
namespace: "mapea",
name: "assda_sv10_ayuntamiento_point_indicadores",
legend: "Prestaciones - Ámbito municipal",
getfeatureinfo: "plain",
geometry: 'POINT',
extract: true,
});
let optionsChartNoTexto = {
type: 'pie',
donutRatio: 0.5,
radius: 25,
offsetX: 0,
offsetY: 0,
stroke: {
color: 'white',
width: 1
},
animation: true,
scheme: M.style.chart.schemes.Custom,
rotateWithView: true,
fill3DColor: '#CC33DD',
variables: [ {
attribute: 's0303',
legend: 'Prestaciones PEAP',
fill: 'cyan'
}, {
attribute: 's0304',
legend: 'Prestaciones PECEF',
fill: 'blue'
}, {
...