mise sous commentaire des affichages des noms

This commit is contained in:
Gabriel Dehame 2022-11-16 16:14:59 +01:00
parent 935584ad6b
commit fe3853a8d7

View File

@ -48,7 +48,7 @@ function min_max(request)
function list_polygons(request, center, ratio, ind)
{
let polygons = [];
let tarace = 0;
//let tarace = 0;
for (const k in request)
{
polygons = [...polygons, ((request[k]).map((y) => {
@ -66,7 +66,8 @@ function list_polygons(request, center, ratio, ind)
return [(z[1]-center[1])/25, (z[0]-center[0])/25];
}
})
})).map((x) => {tarace = tarace+1; return <Polygon positions={x} key={k} pathOptions={{color: 'grey'}}><Tooltip permanent direction={tarace % 2 === 0 ? "bottom" : "top"}>{k}</Tooltip><Popup>Popup</Popup></Polygon>})];
})).map((x) => {return <Polygon positions={x} key={k} pathOptions={{color: 'grey'}}><Popup>Popup</Popup></Polygon>})];
// })).map((x) => {tarace = tarace+1; return <Polygon positions={x} key={k} pathOptions={{color: 'grey'}}><Tooltip permanent direction={tarace % 2 === 0 ? "bottom" : "top"}>{k}</Tooltip><Popup>Popup</Popup></Polygon>})];
}
return polygons;
}