MapboxFragment is an Android Fragment allowing one-line integration of Mapbox custom maps into Google Maps on Android. Best of all, the MapboxFragment class is simply a drop-in replacement for the MapFragment class you already use.
- Set up the Google Maps Android API for your application.
- Add MapboxFragment.java to your project.
- Use
MapboxFragmentwherever you would normally useMapFragment. - Call
setMapIDon your fragment in your activity'sonResumemethod.
MapboxFragment was created by Seth Friedman and Nolan Smith, based off of MBXMapKit for iOS.
MapboxFragment is available under the MIT license.