Maps SDK v10 - Mapbox
文章推薦指數: 80 %
The Mapbox Mobile Maps SDK v10 is ready for download by all Mapbox users ... a full transition from 2D to 3D, improved offline support, ... TheMapboxMobileMapsSDKv10isreadyfordownloadbyallMapboxuserstodayinGeneralAvailability.Thisproduction-readyreleasesetsthefoundationofourmobileSDKforthefuture:generatedcodeinSwiftandKotlin,afulltransitionfrom2Dto3D,improvedofflinesupport,andmajorrenderingpipelineoptimizationsthatdeliverfasterstartuptimesandframerateperformancearejustafewofthemajorarchitecturalchangesintroduced.Andit’snowreadyforeveryone.Performancev10isfast—userswillfeelitsindustry-leadingperformancethroughouttheirmapsexperience,startingwithloadtime.MapboxmapsloadinjustoverhalfasecondonAndroidand1secondoniOS,beatingalternativesonbothplatforms:FromSQLreadbatchingtosmartercaching,v10’soptimizationsadduptoa25-35%improvementincorerenderingperformance.OniOS,fullsupportforMetalmeansamodern&efficientgraphicspipeline.OnAndroid,thenewrendercachesystemdeliversanadditionalframerateboost:Theseperformanceadvantagesdon’tjustmeansmoothmaps.Theymeanmorecyclesforyourapptodoitswork,lowerbatteryimpact,andhappierusersthatarelesslikelytochurn.Featuresv10unlocksentirelynewmapexperiences.New3DterrainandglobeAPIsworkwithallpreviouslybuiltapplications,styles,andcustomdesignedmaps,andcanbeenabledwithjustafewlinesofcode.These3Dcapabilitiesarepairedwithanewandmorepowerfulcamerasystem.DevelopersarefreetochoosebetweentheSDK’sfamiliarandintuitivedefaultanimationsortakingfullcontrolofthecamera’spositioninspace."Ourcustomersexpectamapexperiencethat'saseffectiveonourwristwatchesasitisinourmobileapp.Mapboxgivesusthecontrolweneedtodeliveritonallofourplatforms."TheSnapshotterAPIhasgainednewcapabilities,makingitsimpletocreatestillimagesfromamapthat’sonscreenortorenderthemsilentlyinthebackground.Withaddedsupportforruntimestyling,there’snolongeranygapbetweenauser’son-devicemapandwhattheycanshareonsocialorsendtoastaticsecondarydisplay.Offlineismorepowerful,too.Anall-newtilepackarchitecturedeliversdramaticsavingsindownloadtime.Applicationsusingtheirowncustomtilesetsorpreviousofflineformatcontinuetobesupportedwithbackwards-compatibilityforlegacyofflineintegrations.v10alsobringsnetworksavings,particularlywhenusingstyleswithJapanese,Korean,orChinesefonts.Localglyphrenderingcancutinitialbandwidthusebyasmuchas18%.CJKrenderinghasbeenrevisedandimproved,providingmoreaccurateresultsandfullretinasupport.Greatforusers,greatfordevelopersTheMapsSDKimprovesdeveloperexperience.Thatbeginswithfirst-classsupportforSwiftandKotlin,aswellasSPMandMetaloniOS.TheiOSandAndroidSDKAPIsarealignedwitheachotherandwiththeMapboxStyleSpec,makingthemapexperienceconsistentacrosseveryplatform.Simplifiedobjectlifecyclehandlingmeanscodeissmaller,moreexpressive,andhardertogetwrong.Andmanipulatingmapstylesatruntimeiseasierthankstonewdomain-specificlanguages.Here’showiOSdevelopersconstructedabackgroundcolortransitionbeforev10: letcolorStops:[NSNumber:UIColor]=[ 0:.red, 14:.blue ]; layer.backgroundColor=NSExpression(format: "mgl_interpolate:withCurveType:parameters:stops:($zoomLevel,'linear',nil,%@)", colorStops]; Thesameeffectcannowbeachievedwithcodethat’snotonlymorereadable,but50%moreconcise: Exp(.interpolate){ Exp(.linear) Exp(.zoom) 0 UIColor.red 14 UIColor.blue } All-newobservabilityAPIsprovidegranularvisibilityintothebehaviorofthemap,downtohowindividualtilesareloadedandparsed.Fully-wrappedexceptionsmeancrashesarerareandeasiertodebugthanever.TheSDK’sdesignismodular,makingitpossibletoswapoutdefaultgesturehandling,locationmanagement,andevennetworkingwithdevelopers’ownimplementations,streamliningapparchitectureandmakingitpossibletosupportrequirementslikecustomauth.It’stimetostartbuildingThetimeisrightforallMapboxmobiledeveloperstobeginplanningtheirmovetov10.ThetransitiontoGAmeansstabilizedAPIsandamoredeliberatereleasecadence.Tomakethetransitioneasy,we’llbepublishingexpandeddocumentationintheweeksandmonthstocome.Youcanalreadycheckoutournewguidesdevotedtostylesandcameraanimation(iOS,Android).v10deliversmapsthataremorepowerfulandperformantthaneverbefore,withamoderndeveloperexperienceandafoundationthatcanharnessthefullpoweroftheMapboxplatform.Likealways,allyouneedtogetstartedisaMapboxaccount.We’regratefultoeveryonewhojoinedusforv10’spre-GAreleases.YourfeedbackhashelpedmakethisthebestMapsSDKwe’veeverpublished.Noitemsfound.Noitemsfound.MapsfeaturedatafromMapbox©Mapbox,OpenStreetMap©OpenStreetMapandtheirdatapartners,includingMaxar(ifapplicable,©Maxar).Likethisarticle?Shareit. LinkiscopiedMapsTomLeeTomLeeFollowmeon Noitemsfound.MapboxMappingtoolsfordevelopers+preciselocationdatatochangethewayweexploretheworldRelatedarticlesGuestPostReleasesElectricVehicleRoutingAvailableinPrivatePreviewIntuitiveEVTripPlanning,RangeAssurance,BatteryAlerts&Moreby ShrayKhullarMapbox - Apr7,2022GuestPostReleasesRealistic3DexperiencewithTerrainupdatesby DamonBurgettMapbox - Nov8,2021GuestPostReleasesMapboxGLJSv2.6NewwaystolookattheworldwithAdaptiveProjectionsby AnsisBrammanisMapbox - Nov9,2021GuestPostOtherMapsWhyTheWashingtonPostusedMTS(MapboxTilingService)tovisualizecensusdataby AnnMillspaughMapbox - Nov4,2021GuestPostOtherAutomotiveNavigationSDKforAutomotive:BMWasLaunchPartnerby AlexBarthMapbox - Dec14,2020GuestPostOtherDesign3DDesign:TerrainandSkyComponentinMapboxStudioby SamanBemel-BenrudMapbox - Jan26,2021StayintheloopProvideyouremailtobenotifiedaboutnewposts!YourEmailThankyou!Yoursubmissionhasbeenreceived!Oops!Somethingwentwrongwhilesubmittingtheform.Thisissometextinsideofadivblock.mapsTextLinka
延伸文章資訊
- 1Offline | Maps SDK | Android | Mapbox
If your user base spends most of their time off the grid, use the Mapbox Maps SDK's offline featu...
- 2Offline | Maps SDK | iOS | Mapbox
With offline maps for the Mapbox Maps SDK for iOS, you can take your maps with you, even when the...
- 3Offline | Android Plugins - Mapbox
The Maps SDK v10 and higher comes with offline functionality built in. See the Offline guide. The...
- 4Offline manager | Maps SDK v9 | Android | Mapbox
This page uses v9.7.1 of the Mapbox Maps SDK. A newer version of the SDK is available. Learn abou...
- 5Migrate to v10 | Maps SDK | iOS | Mapbox
Upgrade your application from the Mapbox Maps SDK for iOS v6 to v10. ... The OfflineManager API c...