import React, { useState } from "react";
import { StyleSheet, View, Text } from "react-native";
import OpenStreetMap from "../components/map/OpenStreetMap";
import attachFocusToQuery from "../hooks/useFocus";
import HeaderBarMenu from "../components/HeaderBarMenu";
import useSocketMarkers from "../hooks/useSocketMarkers";
import LoadingMarkersModal from "../components/LoadingMarkersModal";
export default function MapFeedScreen(props) {
HeaderBarMenu(props.navigation);
const [dataOptionsToShow, setDataOptionsToShow] = useState({
oficial: {
automaticPluviometer: false,
susceptibilityAreas: false,
},
citzen: {
floodRisk: false,
pluviometer: true,
rain: true,
floodZones: true,
riverFlood: true,
},
});
const markers = useSocketMarkers();
// console.log("============= qtd markers " + markers.markers.size + " ================" )
// console.log("location: " + JSON.stringify(global.location))
return (
(global.location) ? (
):(
Apresentar um erro no futuro
)
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#FFF",
},
});