Maps SDK | Android | Mapbox
文章推薦指數: 80 %
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
延伸文章資訊
- 1API Reference | Maps SDK | Android | Mapbox
The Mapbox Maps SDK for Android is a toolset for displaying maps inside of your Android applicati...
- 2mapbox/mapbox-sdk-js: A JavaScript client to ... - GitHub
A JS SDK for working with Mapbox APIs. Works in Node, the browser, and React Native. As of 6/11/1...
- 3Installation | Maps SDK | Android | Mapbox
Mapbox provides the Maps SDK via Maven. To add the Mapbox Maps SDK as a dependency, you will need...
- 4Mapbox Maps SDK for iOS
The Mapbox Maps SDK for iOS is a library for embedding highly customized maps within iOS applicat...
- 5Maps SDK | Android | Mapbox
The Mapbox Maps SDK for Android is a library for embedding highly customized maps within Android ...