mapbox / mapbox-android-demo Download - JitPack

文章推薦指數: 80 %
投票人數:10人

Mapbox Android Demo app. CircleCI. This is a public demo of the Mapbox Maps SDK for Android. The demo app is available now in the Google Play Store and it ... Menu JitPack Docs Pricing Private CI   Settings Subscriptions Authorize Signout |SignIn GitHub Download Releases Readme ★677 mapbox/mapbox-android-demo GooglePlaydemoappfortheMapboxMapsSDKforAndroidhttps://play.google.com/store/apps/details?id=com.mapbox.mapboxandroiddemo Download Step1.AddtheJitPackrepositorytoyourbuildfile gradle maven sbt leiningen Additinyourrootbuild.gradleattheendofrepositories: allprojects{ repositories{ ... maven{url'https://jitpack.io'} } } jitpack.io https://jitpack.io Additinyourbuild.sbtattheendofresolvers: resolvers+="jitpack"at"https://jitpack.io" Additinyourproject.cljattheendofrepositories: :repositories[["jitpack""https://jitpack.io"]] Step2.Addthedependency Subproject dependencies{ implementation'com.github.mapbox:mapbox-android-demo:5.1.2' } com.github.mapbox mapbox-android-demo 5.1.2 libraryDependencies+="com.github.mapbox"%"mapbox-android-demo"%"5.1.2" :dependencies[[com.github.mapbox/mapbox-android-demo"5.1.2"]] Readme MapboxAndroidDemoapp ThisisapublicdemooftheMapboxMapsSDKforAndroid.ThedemoappisavailablenowintheGooglePlayStoreanditshowsoffmanyoftheexamplesfoundon: https://docs.mapbox.com/android/maps/exampleshttps://docs.mapbox.com/android/java/exampleshttps://docs.mapbox.com/android/plugins/examples Therearealsoexamplesthatonlyliveintheapp.Theapp's"labs"sectionhasexampleswhichoftencombinevariousMapboxtoolstocreatemorecomplexexamples. VisittheoverviewpagetogetstartedusingtheMapboxMapsSDKforAndroidinyourAndroidproject. Stepstoaddinganewexample Feedbackandcontributionareencouragedinthisrepo.Ifyou'dliketoseeanewexampleaddedintotheapp,eitheropenanissueorcreateityourselfandopenapullrequestfollowingthesesteps: Createanewjavafileandplaceintheacceptablefolder(examplesorlabs)givingitadescriptivenameandendingthetitlewith*Activity.It'simportantthatallactivitiesextendAppCompat.Iftheactivityneedsalayout,addonewiththenamingconventionactivity_*.AddtheactivitytotheAndroidManifest.xmlfile.OpentheMainActivity.javafileandscrolldowntothelistItemsmethod.You'llnoticeaswitchstatement,pickoneofthecases(categories)andaddthenewexamplesoitmatchestheothers.Codeyourexampleandtesttomakesureitworksproperly.Openapullrequestwiththenewexample. Note:ThisrepousescheckstyletomakesurecodecontributedfollowstheMapboxStylestandards.Whenapullrequestisopened,Bitrisewillcheckthatnostyleissuesoccurinthecode.ReadthiswikientrytosetupcheckstyleinAndroidStudio. Runninglocally SettingtheMapboxaccesstoken ThisdemoappusesMapboxvectortiles,whichrequireaMapboxaccountandaMapboxaccesstoken.ObtainafreeaccesstokenontheMapboxaccountpage. WiththefirstGradleinvocation,GradlewilltakethevalueoftheMAPBOX_ACCESS_TOKENenvironmentvariableandsaveittoSharedCode/src/main/res/values/developer-config.xml.Iftheenvironmentvariablewasn'tset,youcancreate/editthedeveloper-config.xmlfile.Createanaccess_tokenStringresourceandpasteyouraccesstokenintoit: YOUR_MAPBOX_ACCESS_TOKEN Insidetheapp



請為這篇文章評分?