2015-04-28 15:28:12 -07:00
2015-04-28 10:11:35 -07:00
2015-04-28 10:11:35 -07:00
2015-04-26 13:09:56 -07:00
2015-04-28 15:28:12 -07:00
2015-04-26 13:09:56 -07:00
2015-04-28 15:28:12 -07:00
2015-04-28 10:11:35 -07:00
2015-04-28 10:38:09 -07:00
2015-04-28 10:11:35 -07:00
2015-04-28 10:11:35 -07:00
2015-04-28 10:11:35 -07:00
2015-04-28 10:11:35 -07:00
2015-04-28 10:11:35 -07:00
2015-04-27 22:34:45 -07:00

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>
    );
  }
});

S
Description
A Mapbox GL react native module for creating custom maps
Readme
13 MiB
Languages
Java 45.3%
Objective-C 39.6%
JavaScript 14.1%
Ruby 0.4%
Shell 0.4%
Other 0.2%