mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-30 20:41:08 +00:00
0aeee37899ca895fc2d83670db48ff78cdb82303
A work in progress.
To get this running locally:
pod install- Open
mapboxGlReactnative.xcworkspace - Link Binary With Libraries:
MapboxGL.framework - Run
Info on installing Mapbox GL normally
Adding a MapboxGLView:
var map = React.createClass({
render: function() {
var center = {
latitude: 40.7223,
longitude: -73.9878
};
return (
<View>
<MapboxGLView style={{width: 0, height: 0}}/>
<MapboxGLView
style={styles.map}
rotateEnabled={true}
showsUserLocation={true}
accessToken={'your-mapbox.com-access-token'}
styleURL={'https://www.mapbox.com/mapbox-gl-styles/styles/mapbox-streets-v7.json'}
zoomLevel={13}
centerCoordinate={center}
/>
</View>
);
}
});
Languages
Java
45.3%
Objective-C
39.6%
JavaScript
14.1%
Ruby
0.4%
Shell
0.4%
Other
0.2%