mirror of
https://gitlab.aliens-lyon.fr/encartes/web-interface.git
synced 2026-03-18 23:21:05 +01:00
mise sous commentaire des affichages des noms
This commit is contained in:
parent
935584ad6b
commit
fe3853a8d7
@ -48,7 +48,7 @@ function min_max(request)
|
|||||||
function list_polygons(request, center, ratio, ind)
|
function list_polygons(request, center, ratio, ind)
|
||||||
{
|
{
|
||||||
let polygons = [];
|
let polygons = [];
|
||||||
let tarace = 0;
|
//let tarace = 0;
|
||||||
for (const k in request)
|
for (const k in request)
|
||||||
{
|
{
|
||||||
polygons = [...polygons, ((request[k]).map((y) => {
|
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];
|
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;
|
return polygons;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user