diff --git a/src/app/assets/pluviometer/pluviometroOficial.png b/src/app/assets/pluviometer/pluviometroOficial.png index 02d5ba1..45fee4d 100644 Binary files a/src/app/assets/pluviometer/pluviometroOficial.png and b/src/app/assets/pluviometer/pluviometroOficial.png differ diff --git a/src/app/components/FloatButton.js b/src/app/components/FloatButton.js index d9231e8..d80039f 100644 --- a/src/app/components/FloatButton.js +++ b/src/app/components/FloatButton.js @@ -7,6 +7,7 @@ import { Animated, TouchableWithoutFeedback, Dimensions, + PixelRatio, } from "react-native"; import { FlatList } from "react-native-gesture-handler"; @@ -33,10 +34,10 @@ function FloatButton(props) { toValue: value, friction: 6, useNativeDriver: true, - }).start(); - const json = JSON.stringify(context.layers); - const obj = JSON.parse(json); - + }).start(); + const json = JSON.stringify(context.layers); + const obj = JSON.parse(json); + setLayers(obj); setOpen(!open); }; @@ -114,18 +115,18 @@ function FloatButton(props) { 600 ? 0 : screenHeight * 0.10) + height: (PixelRatio.get() >= 3 ? screenHeight * 0.75 : screenHeight * 0.80), //solução temporária, procurar soluções pro menu se ajustar melhor ao layout + paddingTop: (PixelRatio.get() > 3 ? screenHeight * 0.10 : 5) }}> - Escolha o que deseja ver no mapa: + Selecione os dados: