mapa parcelas

This commit is contained in:
abe- 2017-06-17 15:46:01 +02:00
parent 8195e535fa
commit 974fd276ad
2 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/p5.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.dom.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.dom.min.js"></script>
<script src="parcelas.js"></script> <script src="parcelas.js"></script>

View file

@ -57,6 +57,7 @@ function draw() {
//var nbr = String.prototype.toUpperCase(nombres[n]); //var nbr = String.prototype.toUpperCase(nombres[n]);
if (dimr[n] != -1 || !compara(mc,color(colores[n]))) fill(0); if (dimr[n] != -1 || !compara(mc,color(colores[n]))) fill(0);
else fill(0); else fill(0);
stroke(255);
textStyle(BOLD); textStyle(BOLD);
text(nombres[n], x[n], y[n]-10); text(nombres[n], x[n], y[n]-10);
@ -65,18 +66,22 @@ function draw() {
text("Plan inicial: " + dim[n]+" Has", x[n], y[n]+5); text("Plan inicial: " + dim[n]+" Has", x[n], y[n]+5);
} }
else { else {
noStroke();
if (dimr[n] != -1) text("Parcela media: " + dimr[n]+" Has", x[n], y[n]+5); if (dimr[n] != -1) text("Parcela media: " + dimr[n]+" Has", x[n], y[n]+5);
else text("(Sin datos)", x[n], y[n]+5); else text("(Sin datos)", x[n], y[n]+5);
} }
} }
// Titulo // Titulo
fill(255,200);
stroke(255);
rect(585, 365, 170, 150);
fill(0); fill(0);
textStyle(BOLD); textStyle(BOLD);
textSize(14); textSize(12);
text("TAMAÑO MEDIO DE EXPLOTACIÓN ENTREGADA A COLONO", 600, 350, 150, 80); text("TAMAÑO MEDIO DE EXPLOTACIÓN ENTREGADA A COLONO", 600, 380, 150, 80);
textStyle(NORMAL); textStyle(NORMAL);
textSize(14); textSize(12);
text("Datos reales frente a datos según Plan de Colonización", 600, 430, 150, 80); text("Datos reales frente a datos según Plan de Colonización", 600, 430, 150, 80);
} }