mirror of
https://gitlab.aliens-lyon.fr/encartes/web-interface.git
synced 2026-03-18 07:01:05 +01:00
test items clickables dans popup pour changement d'étage via les escaliers/ascenseurs
This commit is contained in:
parent
de8157ef9a
commit
49880146da
11
src/Map.js
11
src/Map.js
@ -94,7 +94,16 @@ function list_polygons(request, center, ratio, cb, selectedRoom)
|
||||
{
|
||||
return <Polygon positions={x} key={k + color} color={color} onClick={() => cb(k)}>
|
||||
<Tooltip>{k}</Tooltip>
|
||||
<Marker position={polygonCenter(x)} icon={new L.Icon({iconUrl: stairs, iconSize: [40,40]})}></Marker>
|
||||
<Marker position={polygonCenter(x)} icon={new L.Icon({iconUrl: stairs, iconSize: [40,40]})}>
|
||||
<Popup>
|
||||
<li onClick={() => {console.log("oui");}}>
|
||||
YAY
|
||||
</li>
|
||||
<li>
|
||||
uéuéué
|
||||
</li>
|
||||
</Popup>
|
||||
</Marker>
|
||||
</Polygon>
|
||||
}
|
||||
else if (k === "salle-M-GN1-X-ag" || k === "salle-M-GN1-X-ah")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user