Browse Source

Use public token

Arnaud Vergnet 3 years ago
parent
commit
936f2a8e9e
1 changed files with 27 additions and 28 deletions
  1. 27
    28
      src/screens/Services/MapScreen.js

+ 27
- 28
src/screens/Services/MapScreen.js View File

@@ -6,7 +6,6 @@ import {withTheme} from 'react-native-paper';
6 6
 import {StackNavigationProp} from "@react-navigation/stack";
7 7
 import type {CustomTheme} from "../../managers/ThemeManager";
8 8
 import MapboxGL from "@react-native-mapbox-gl/maps";
9
-import exampleIcon from '../../../assets/icon-notification.png';
10 9
 
11 10
 type Props = {
12 11
     navigation: StackNavigationProp,
@@ -17,22 +16,22 @@ type State = {
17 16
     featureCollection: Array<Object>,
18 17
 }
19 18
 
20
-MapboxGL.setAccessToken("sk.eyJ1IjoiYW1pY2FsZS1pbnNhdCIsImEiOiJja2JpM212Z3QwYmxmMnhsc3RxZWYza2Q5In0.og84RKRa6-vr3qRA1qU9Aw");
19
+MapboxGL.setAccessToken("pk.eyJ1IjoiYW1pY2FsZS1pbnNhdCIsImEiOiJja2JpM2d5OHYwYmdiMndxdnV4bmh6bGFwIn0.qiOwbs2_HRaQGUOpBDjbsQ");
21 20
 
22
-const styles = {
23
-    icon: {
24
-        iconImage: exampleIcon,
25
-        iconAllowOverlap: true,
26
-    },
27
-};
21
+// const styles = {
22
+//     icon: {
23
+//         iconImage: exampleIcon,
24
+//         iconAllowOverlap: true,
25
+//     },
26
+// };
28 27
 
29
-const FEATURES = [{
30
-    type: 'Feature',
31
-    geometry: {
32
-        type: 'Point',
33
-        coordinates: [1.4669608, 43.5698867],
34
-    }
35
-}]
28
+// const FEATURES = [{
29
+//     type: 'Feature',
30
+//     geometry: {
31
+//         type: 'Point',
32
+//         coordinates: [1.4669608, 43.5698867],
33
+//     }
34
+// }]
36 35
 
37 36
 /**
38 37
  * Class defining the app's map screen.
@@ -55,19 +54,19 @@ class MapScreen extends React.Component<Props, State> {
55 54
 
56 55
     }
57 56
 
58
-    onSymbolPress = (feature) => {
59
-        console.log("coucou");
60
-    }
61
-
62
-
63
-    onSourceLayerPress = ({features, coordinates, point}) => {
64
-        console.log(
65
-            'You pressed a layer here are your features:',
66
-            features,
67
-            coordinates,
68
-            point,
69
-        );
70
-    }
57
+    // onSymbolPress = (feature) => {
58
+    //     console.log("coucou");
59
+    // }
60
+    //
61
+    //
62
+    // onSourceLayerPress = ({features, coordinates, point}) => {
63
+    //     console.log(
64
+    //         'You pressed a layer here are your features:',
65
+    //         features,
66
+    //         coordinates,
67
+    //         point,
68
+    //     );
69
+    // }
71 70
 
72 71
     render() {
73 72
         return (

Loading…
Cancel
Save