diff --git a/src/app/hooks/useFiltering.js b/src/app/hooks/useFiltering.js index 81cd4c8..6ece3e5 100644 --- a/src/app/hooks/useFiltering.js +++ b/src/app/hooks/useFiltering.js @@ -39,14 +39,14 @@ function useFiltering(location) { name: "susceptibilityAreas", socketUrl: new WebSocket( "wss://waterproofing.geog.uni-heidelberg.de/wss/hot/formsanswers?" + - `type=FLOODZONES_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=3` + `type=FLOODZONES_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=15` ), }, { name: "automaticPluviometer", socketUrl: new WebSocket( "wss://waterproofing.geog.uni-heidelberg.de/wss/hot/formsanswers?" + - `type=PLUVIOMETERS_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=5` + `type=PLUVIOMETERS_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=500000&limit=10` ), }, ]; diff --git a/src/app/hooks/useSocketMarkers.js b/src/app/hooks/useSocketMarkers.js index 0c2df5f..7fd8540 100644 --- a/src/app/hooks/useSocketMarkers.js +++ b/src/app/hooks/useSocketMarkers.js @@ -138,12 +138,7 @@ function buildPolygonsObject(response, name) { return { ID: r.formsanswersid, name: name, - title: "Titulo", //response.fieldsanswerssituation - address: "Endereço", //response.fieldsanswerseventaddress, coordinate: coordinate, - date: "data" + " | " + "hora", //response.fieldsanswerseventdate + " | " + response.fieldsanswerseventtime, - description: "comentário", //response.fielsanswercomment, - logo: custom_assets.pluviometer, pictures: null, image: "", //getMarkerImage(answer.name), }; @@ -151,12 +146,7 @@ function buildPolygonsObject(response, name) { return { ID: r.formsanswersid, name: name, - title: "Titulo", //response.fieldsanswerssituation - address: "Endereço", //response.fieldsanswerseventaddress, coordinate: [null, null], - date: "data" + " | " + "hora", //response.fieldsanswerseventdate + " | " + response.fieldsanswerseventtime, - description: "comentário", //response.fielsanswercomment, - logo: custom_assets.pluviometer, pictures: null, image: "", //getMarkerImage(answer.name), };