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
MapboxFragment
wherever you would normally useMapFragment
. - Call
setMapID
on your fragment in your activity'sonResume
method.
MapboxFragment was created by Seth Friedman and Nolan Smith, based off of MBXMapKit for iOS.
MapboxFragment is available under the MIT license.