mirror of
https://gitlab.aliens-lyon.fr/encartes/web-interface.git
synced 2026-03-17 22:51:04 +01:00
ajout des ascenseurs
This commit is contained in:
parent
6bb4bad0e7
commit
de8157ef9a
@ -9,6 +9,7 @@ import { useState } from "react";
|
||||
import React from 'react';
|
||||
import L from 'leaflet';
|
||||
import stairs from "./stairs.png";
|
||||
import lift from "./lift.png";
|
||||
import request2 from "./M-GN1-2.json"
|
||||
import request3 from "./M-GN1-3.json"
|
||||
import request4 from "./M-GN1-4.json"
|
||||
@ -96,6 +97,13 @@ function list_polygons(request, center, ratio, cb, selectedRoom)
|
||||
<Marker position={polygonCenter(x)} icon={new L.Icon({iconUrl: stairs, iconSize: [40,40]})}></Marker>
|
||||
</Polygon>
|
||||
}
|
||||
else if (k === "salle-M-GN1-X-ag" || k === "salle-M-GN1-X-ah")
|
||||
{
|
||||
return <Polygon positions={x} key={k + color} color={color} onClick={() => cb(k)}>
|
||||
<Tooltip>{k}</Tooltip>
|
||||
<Marker position={polygonCenter(x)} icon={new L.Icon({iconUrl: lift, iconSize: [20,20]})}></Marker>
|
||||
</Polygon>
|
||||
}
|
||||
else
|
||||
{
|
||||
return <Polygon positions={x} key={k + color} color={color} onClick={() => cb(k)}>
|
||||
|
||||
BIN
src/lift.png
Normal file
BIN
src/lift.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Loading…
x
Reference in New Issue
Block a user