Maps SDK | Android | Mapbox

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

The Mapbox Maps SDK for Android is a library for embedding highly customized maps within Android applications. Use custom map styles. Youareusinganoutdatedbrowserandwillencountersomeproblemswithourwebsite.Pleaseconsiderupgrading.UpgradeNowMapsSDKforAndroidSearchGuidesExamplesAPIReferenceTutorialsTroubleshootingAlldocsMapsSDKforAndroidGuidesMapsSDKforAndroidCurrentversion:v10.5.0ViewchangelogCustommapstylingRuntimestylingCameramanipulationQueryingthemapUserinteractionContributeonGitHubOnthispageRequirementsJavacompatibilityUsewithotherMapboxtoolsStaticmapsMapboxStudioConditionsAttributionTelemetryoptoutOlderversionsoftheSDKMapsSDKMapboxAndroidPluginsShareyourfeedbackTheMapboxMapsSDKforAndroidisalibraryforembeddinghighlycustomizedmapswithinAndroidapplications.Usecustommapstyles.StartwithoneofourMapbox-designedstylesthatareoptimizedforvarioususecasesordesignyourowncustomstyleinMapboxStudio.Enhancetheexperiencewith3Dterrain.Youcanevenalteryourmap'sstyleatruntime.Addyourowncustomdatatothemap.Whetheryou'readdingmarkerstoamaptoincludeastorelocatorrightinyourapporcreatingcompellingdatavisualizations,theMapsSDKgivesyoucontroloverhowyoudisplaydataonyourmap.Youcanstylemapfeaturesatruntimebasedondataproperties,userinteraction,ordevicesettings.Yourbrowserdoesn'tsupportHTML5video.Openlinktothevideo.RequirementsTheMapboxMapsSDKforAndroidiscompatiblewithapplicationsthat:ArebuiltusingtheAndroidSDK21orhigher.UseJava8forsourceCompatibilityandtargetCompatibility,asshownintheinstallationguide.JavacompatibilityTheMapboxMapsSDKforAndroidisbuiltwithKotlin,theofficiallanguagerecommendedbyGoogleforAndroiddevelopment.Kotlinis100%interoperablewithJava.ApplicationswithaJavacodebasecaninteractproperlywiththepublicAPIsexposedbyMapboxSDKsforAndroid.IfyouexperienceanyissuesusingtheMapboxMapsSDKforAndroidwithJava,contactus.UsewithotherMapboxtoolsUsetheMapboxMapsSDKforAndroidwithotherMapboxproducts.Mixandmatchothertoolsandpluginstocreatealocation-savvyapplicationtoyourexactspecifications.StaticmapsTheMapboxMapsSDKforAndroidincludesmethodstogenerateastaticsnapshotofanexistingmapwithinyourapplication.UsetheMapSnapshotterclasstocreateastaticrasterimageofamap,withouthavingtomakearequesttoanotherAPI.TheJavaSDKisalsoavailableforapplicationsthatneeddirectaccesstotheMapboxStaticImagesAPI.MapboxStudioTheMapboxMapsSDKiscompatiblewithMapboxStudio.Designamapthatseamlesslymatchesyourbrandandapplicationdesign,theninfuseitwithyourowncustomdataallwithintheMapboxStudiowebinterface.ConditionsAttributionYoumustincludetheMapboxwordmarkonanymapthatusestheMapboxMapsSDKforAndroid.Youmustdisplayattributiononmapsunlessthemap'sdatacomesentirelyfromnon-Mapboxsources.YoumayadjustthepositionoftheMapboxwordmarkandattributionnotice,buttheymuststayvisibleonthemap.Youmayalsochangethebackgroundandtextcoloroftheattributionnoticetomatchyourdesignaesthetics,butallinformationmustbelegible.YoumaynototherwisealtertheMapboxwordmarkortextattributionnotice.guideAttributionguidelinesLearnmoreaboutwhatkindsofattributionMapboxrequiresandwhy.TelemetryoptoutMapboxTelemetryisapowerfullocationanalyticsplatformincludedinthisSDK.Bydefault,theSDKsendsanonymizedlocationandusagedatatoMapboxwheneverthehostappcausesittobegathered.TheMapboxTermsofServicerequireyourapptoprovideuserswithawaytoindividuallyoptoutofMapboxTelemetry,whichisprovidedautomaticallyaspartoftheattributioncontrol.Ifyouhidetheattributioncontrol,youmustprovideanalternativeoptoutforyouruserstouse.OlderversionsoftheSDKMapsSDKLookingforanolderversionoftheMapsSDK?SeetheMapsSDKv9documentation.MapboxAndroidPluginsMostofthefunctionalitycoveredintheMapboxAndroidPluginsdocumentationisnowintegratedintotheMapsSDKv10andhigherdirectly.Thereisnoneedtoinstallpluginsseparately.IfyouareusinganolderversionoftheMapsSDK,youcanaccessinformationaboutpluginsintheAndroidPluginsdocumentation.Shareyourfeedback



請為這篇文章評分?