diff --git a/src/Map.js b/src/Map.js index e197b4b..e98fc54 100644 --- a/src/Map.js +++ b/src/Map.js @@ -218,7 +218,7 @@ function list_polygons(request, center, callbackRoomSelected, selectedRoom, call // only works for third floor) // It also changes the objects into lists of two coordinates to make it accepted by the "positions" attribute of // the "Polygon" react-leaflet component - return [-(pt["y"] - center[1]) / 25, (pt["x"] - center[0]) / 25]; + return [-(pt["y"] - center[1]) / 6, (pt["x"] - center[0]) / 6]; }); const pol = newPolygon(element, positions, selectedRoom, callbackRoomSelected, callbackChangeFloor); polygons = [...polygons, pol];