mirror of
https://gitlab.aliens-lyon.fr/encartes/web-interface.git
synced 2026-09-11 18:00:45 +02:00
Icone d'escalier rendu local
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ import { Tooltip } from 'react-leaflet/Tooltip'
|
||||
import { useState } from "react";
|
||||
import React from 'react';
|
||||
import L from 'leaflet';
|
||||
import "./stairs.png";
|
||||
import stairs from "./stairs.png";
|
||||
import request2 from "./M-GN1-2.json"
|
||||
import request3 from "./M-GN1-3.json"
|
||||
import request4 from "./M-GN1-4.json"
|
||||
@@ -93,7 +93,7 @@ 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: "http://getdrawings.com/img/stair-silhouette-30.png", iconSize: [40,40]})}></Marker>
|
||||
<Marker position={polygonCenter(x)} icon={new L.Icon({iconUrl: stairs, iconSize: [40,40]})}></Marker>
|
||||
</Polygon>
|
||||
}
|
||||
else
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Reference in New Issue
Block a user