diff --git a/assets/icon/findmylock.png b/assets/icon/findmylock.png new file mode 100644 index 0000000..e4cd798 Binary files /dev/null and b/assets/icon/findmylock.png differ diff --git a/assets/icon/layerList.png b/assets/icon/layerList.png new file mode 100644 index 0000000..0d49784 Binary files /dev/null and b/assets/icon/layerList.png differ diff --git a/assets/icon/mapOutline.png b/assets/icon/mapOutline.png new file mode 100644 index 0000000..0428d6c Binary files /dev/null and b/assets/icon/mapOutline.png differ diff --git a/assets/icon/openCamera.png b/assets/icon/openCamera.png new file mode 100644 index 0000000..8fe6bc2 Binary files /dev/null and b/assets/icon/openCamera.png differ diff --git a/src/component/editLinescreen.tsx b/src/component/editLinescreen.tsx index 1a52183..44baa2d 100644 --- a/src/component/editLinescreen.tsx +++ b/src/component/editLinescreen.tsx @@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from 'react'; import {View,Text, StyleSheet, ScrollView, TouchableOpacity, Image, Animated, TextInput, Button, Alert} from 'react-native'; import MapLibreGL from '@maplibre/maplibre-react-native'; +import { MapView,ShapeSource,Camera,UserLocation,PointAnnotation,FillLayer,LineLayer,VectorSource } from "@maplibre/maplibre-react-native"; import { SelectList } from 'react-native-dropdown-select-list'; import { RadioButton } from 'react-native-paper'; import DatePicker from 'react-native-date-picker'; @@ -378,7 +379,7 @@ export default function EditLineScreen({route,navigation}:collectLineScreenProps - - - - - + { coordinates.map((item:any,index:number)=>( - } key={index} id={String(index)} @@ -466,7 +466,7 @@ export default function EditLineScreen({route,navigation}:collectLineScreenProps /> )) } - + {!secondPress ? {navigation.navigate('Map View Line', { screen: 'Map View Line',data: { id:data.id, diff --git a/src/component/editPolygonscreen.tsx b/src/component/editPolygonscreen.tsx index 39b666b..88c87c9 100644 --- a/src/component/editPolygonscreen.tsx +++ b/src/component/editPolygonscreen.tsx @@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from 'react'; import {View,Text, StyleSheet, ScrollView, TouchableOpacity, Image, Animated, TextInput, Button, Alert} from 'react-native'; import {useNavigation,NavigationContainer,useIsFocused} from '@react-navigation/native'; import MapLibreGL from '@maplibre/maplibre-react-native'; +import { MapView,ShapeSource,Camera,UserLocation,PointAnnotation,FillLayer,LineLayer,VectorSource } from "@maplibre/maplibre-react-native"; import { SelectList } from 'react-native-dropdown-select-list'; import { RadioButton } from 'react-native-paper'; import DatePicker from 'react-native-date-picker'; @@ -420,15 +421,14 @@ export default function EditPolygonScreen({route,navigation}:EditPolygonScreenPr }} /> - - - - - - + : null @@ -474,7 +474,7 @@ export default function EditPolygonScreen({route,navigation}:EditPolygonScreenPr { coordinates.map((item:any,index:number)=>( - - + )) } - + {!secondPress ? {navigation.navigate('Map View Polygon', { screen: 'Map View Polygon',data: { id:data.id, diff --git a/src/component/editscreen.tsx b/src/component/editscreen.tsx index 78b1a47..8fce18c 100644 --- a/src/component/editscreen.tsx +++ b/src/component/editscreen.tsx @@ -26,6 +26,7 @@ import { import RNFS from 'react-native-fs'; import MapLibreGL from '@maplibre/maplibre-react-native'; + import { MapView,ShapeSource,Camera,UserLocation,PointAnnotation,FillLayer,LineLayer,VectorSource } from "@maplibre/maplibre-react-native"; import Moment from 'moment'; import { RadioButton } from 'react-native-paper'; import AwesomeAlert from 'react-native-awesome-alerts'; @@ -432,27 +433,27 @@ function EditScreen({route,navigation}: editScreenProps) { }} /> - - } id={"pjuCoordinate"} coordinate={[long, lat]} /> - - + navigation.navigate('MapView', { screen: 'MapView',data: { id:data.id, nama:pju_name, diff --git a/src/component/mapCollectLineScreen.tsx b/src/component/mapCollectLineScreen.tsx index 956da4b..e1a4a21 100644 --- a/src/component/mapCollectLineScreen.tsx +++ b/src/component/mapCollectLineScreen.tsx @@ -1,5 +1,5 @@ import React, {useState, useEffect} from "react"; -import { View, Text, StyleSheet, Alert, TouchableOpacity, Image } from "react-native"; +import { View, Text, StyleSheet, Alert, TouchableOpacity, Image, StatusBar } from "react-native"; import MapLibreGL from '@maplibre/maplibre-react-native'; import { MapView,ShapeSource,Camera,UserLocation,PointAnnotation,FillLayer,LineLayer,VectorSource } from "@maplibre/maplibre-react-native"; @@ -108,13 +108,17 @@ function MapCollectLineScreen({route,navigation}:MapCollectLineProps):React.JSX. return( + + + setZoom(region.properties.zoomLevel) } + compassEnabled={false} > + + + + + + + + + + + - {/* Widget Map */} - + {/* handleZoom(true)}> - + */} + { startPoint.length === 0 ? currentPosition.length > 0 ? diff --git a/src/component/mapCollectPolygonScreen.tsx b/src/component/mapCollectPolygonScreen.tsx index 2a8e045..7183cb3 100644 --- a/src/component/mapCollectPolygonScreen.tsx +++ b/src/component/mapCollectPolygonScreen.tsx @@ -1,5 +1,5 @@ import React, {useState, useEffect, useRef} from "react"; -import { View, Text, StyleSheet, Alert, TouchableOpacity, Image } from "react-native"; +import { View, Text, StyleSheet, Alert, TouchableOpacity, Image, StatusBar } from "react-native"; import MapLibreGL from '@maplibre/maplibre-react-native'; import { MapView,ShapeSource,Camera,UserLocation,PointAnnotation,FillLayer,LineLayer,VectorSource } from "@maplibre/maplibre-react-native"; @@ -123,8 +123,10 @@ function MapCollectPolygonScreen({route,navigation}:MapCollectPolygonProps):Reac return( + + @@ -198,6 +200,24 @@ function MapCollectPolygonScreen({route,navigation}:MapCollectPolygonProps):Reac } + + + + + + + + + {/* Widget Map */} handleZoom(true)}> diff --git a/src/component/myAccount.tsx b/src/component/myAccount.tsx index aa880a6..7cd9e9f 100644 --- a/src/component/myAccount.tsx +++ b/src/component/myAccount.tsx @@ -30,7 +30,14 @@ export default function MyAccount() { source={require('../../assets/img/mcf.jpg')} style={[{width:131,height:131,borderRadius:100}]} /> + + + +