forked from vergnet/application-amicale
Use public token
This commit is contained in:
parent
1af4688329
commit
936f2a8e9e
1 changed files with 27 additions and 28 deletions
|
@ -6,7 +6,6 @@ import {withTheme} from 'react-native-paper';
|
||||||
import {StackNavigationProp} from "@react-navigation/stack";
|
import {StackNavigationProp} from "@react-navigation/stack";
|
||||||
import type {CustomTheme} from "../../managers/ThemeManager";
|
import type {CustomTheme} from "../../managers/ThemeManager";
|
||||||
import MapboxGL from "@react-native-mapbox-gl/maps";
|
import MapboxGL from "@react-native-mapbox-gl/maps";
|
||||||
import exampleIcon from '../../../assets/icon-notification.png';
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
navigation: StackNavigationProp,
|
navigation: StackNavigationProp,
|
||||||
|
@ -17,22 +16,22 @@ type State = {
|
||||||
featureCollection: Array<Object>,
|
featureCollection: Array<Object>,
|
||||||
}
|
}
|
||||||
|
|
||||||
MapboxGL.setAccessToken("sk.eyJ1IjoiYW1pY2FsZS1pbnNhdCIsImEiOiJja2JpM212Z3QwYmxmMnhsc3RxZWYza2Q5In0.og84RKRa6-vr3qRA1qU9Aw");
|
MapboxGL.setAccessToken("pk.eyJ1IjoiYW1pY2FsZS1pbnNhdCIsImEiOiJja2JpM2d5OHYwYmdiMndxdnV4bmh6bGFwIn0.qiOwbs2_HRaQGUOpBDjbsQ");
|
||||||
|
|
||||||
const styles = {
|
// const styles = {
|
||||||
icon: {
|
// icon: {
|
||||||
iconImage: exampleIcon,
|
// iconImage: exampleIcon,
|
||||||
iconAllowOverlap: true,
|
// iconAllowOverlap: true,
|
||||||
},
|
// },
|
||||||
};
|
// };
|
||||||
|
|
||||||
const FEATURES = [{
|
// const FEATURES = [{
|
||||||
type: 'Feature',
|
// type: 'Feature',
|
||||||
geometry: {
|
// geometry: {
|
||||||
type: 'Point',
|
// type: 'Point',
|
||||||
coordinates: [1.4669608, 43.5698867],
|
// coordinates: [1.4669608, 43.5698867],
|
||||||
}
|
// }
|
||||||
}]
|
// }]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class defining the app's map screen.
|
* Class defining the app's map screen.
|
||||||
|
@ -55,19 +54,19 @@ class MapScreen extends React.Component<Props, State> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onSymbolPress = (feature) => {
|
// onSymbolPress = (feature) => {
|
||||||
console.log("coucou");
|
// console.log("coucou");
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
onSourceLayerPress = ({features, coordinates, point}) => {
|
// onSourceLayerPress = ({features, coordinates, point}) => {
|
||||||
console.log(
|
// console.log(
|
||||||
'You pressed a layer here are your features:',
|
// 'You pressed a layer here are your features:',
|
||||||
features,
|
// features,
|
||||||
coordinates,
|
// coordinates,
|
||||||
point,
|
// point,
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue