From 11da0f646c7206b6ce8476ac1f50615a47658394 Mon Sep 17 00:00:00 2001 From: Swrup Date: Thu, 16 Dec 2021 10:00:01 +0100 Subject: [PATCH] fix geojson, classic trolling with order of coordinates --- src/user.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/user.ml b/src/user.ml index 775e320..dd137b4 100644 --- a/src/user.ml +++ b/src/user.ml @@ -281,8 +281,9 @@ let marker_to_geojson marker = } |} (*TODO escape in content ?? *) - (Float.to_string lat) - (Float.to_string lng) (String.escaped content) + (* geojson use lng lat, and not lat lng*) + (Float.to_string lng) + (Float.to_string lat) (String.escaped content) let view_user_plant_list nick = let plant_id_list =