forked from cemaden-educacao/WPD-MobileApp
analuizaff
4 years ago
4 changed files with 55 additions and 11 deletions
-
21src/app/components/MapPolygons.js
-
4src/app/context/CurrentLocationContext.js
-
2src/app/context/MapDataContext.js
-
37src/app/screens/MapFeedScreen.js
@ -0,0 +1,21 @@ |
|||||
|
import React, { useState } from "react"; |
||||
|
import { View, StyleSheet, Image } from "react-native"; |
||||
|
import MapView, { Polygon } from "react-native-maps"; |
||||
|
import colors from "../config/colors"; |
||||
|
import { dimensions } from "../config/dimensions"; |
||||
|
import MapModal from "./MapModal"; |
||||
|
const markerSize = 30; |
||||
|
|
||||
|
export default function MapPolygons({ coordinates }) { |
||||
|
return ( |
||||
|
<Polygon |
||||
|
coordinates={coordinates} |
||||
|
// hole={hole}
|
||||
|
strokeColor="rgba(25, 118, 210,0.2)" |
||||
|
fillColor="rgba(25, 118, 210,0.5)" |
||||
|
strokeWidth={5} |
||||
|
/> |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue