MapLibre GL Native - Open-Source Mapbox GL Native - GitHub

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

The open-source alternative to Mapbox GL Native. SDKs for iOS, Android and other platforms - GitHub - maplibre/maplibre-gl-native: The open-source ... Skiptocontent {{message}} maplibre / maplibre-gl-native Public Notifications Fork 99 Star 375 Theopen-sourcealternativetoMapboxGLNative.SDKsforiOS,Androidandotherplatforms maplibre.org License BSD-2-Clauselicense 375 stars 99 forks Star Notifications Code Issues 87 Pullrequests 17 Discussions Actions Security Insights More Code Issues Pullrequests Discussions Actions Security Insights Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository. main Branches Tags Couldnotloadbranches Nothingtoshow {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default 4 branches 20 tags Code Latestcommit ntadej [msvc]Avoidwarningsintests(#276) … 2dcc9d8 Apr26,2022 [msvc]Avoidwarningsintests(#276) 2dcc9d8 Gitstats 16,560 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime .github     benchmark     bin     expression-test     include/mbgl     maplibre-gl-js@9489d76     metrics     misc     platform     render-test     scripts     src/mbgl     test     vendor     .gitignore     .gitmodules     .npmignore     ARCHITECTURE.md     CHANGELOG.md     CMakeLists.txt     CODE-OF-CONDUCT.md     CONTRIBUTING.md     DEVELOPING.md     LICENSE.mbgl-core.md     LICENSE.md     README.md     codecov.yml     package-lock.json     package.json     Viewcode MapLibreGLNative-Open-SourceMapboxGLNative BuildStatus Installation Android iOS Alternativeinstallation Howtocreateyourownbuild Sourcecodecheckout Build Android iOS MacOS README.md MapLibreGLNative-Open-SourceMapboxGLNative SDKforiOS,Androidandotherplatforms MapLibreGLNativeisacommunityledforkderivedfrommapbox-gl-nativepriortotheirswitchtoanon-OSSlicense.TheforkalsoincludesMapsSDKforiOSandMacOS(forkedfrommapbox-gl-native-ios)andAndroidSDK(forkedfrommapbox-gl-native-android).Theseplatform-specificSDKsweremergedunderplatformdirectoryandtheyreferencemapbox-gl-nativedirectly,notasasubmodule. BesidemerginginplatformspecificSDKs,thefollowingchangesweremadecomparedtooriginalmapboxprojects: Thecodewasupgradedsothatitcanbebuiltusinglatestclangcompiler/Xcode12. CI/CDwasmigratedfromCircleCItoGitHubActions. AlongwithGitHubreleases,binariesaredistributedasfollows: TheiOSbinariesdistributionwasupgradedfromfatpackagestoSwiftpackagecontainingXCFramework. TheAndroidbinariesaredistributedtoGitHubmavenpackagerepository. Themapbox-gl-nativewasforkedfromd60fd30-mgbl1.6.0,mapbox-gl-native-iosfroma139216andmapbox-gl-native-androidfrom4c12fb2 BuildStatus SDK Build Buildstatus MapsSDKforiOS CI MapsSDKforiOS Release MapsSDKforAndroid CI MapsSDKforAndroid Release Installation Android Addbintraymavenrepositoriestoyourbuild.gradleatprojectlevelsothatyoucanaccessMapLibrepackagesforAndroid: allprojects{ repositories{ ... mavenCentral() } } Note:BintraywasturnoffMay1st,2021sowemigratedallpackagestomavencentral. Addthelibraryasadependencyintoyourmodulebuild.gradle dependencies{ ... implementation'org.maplibre.gl:android-sdk:9.4.0' ... } Syncgradleandrebuildyourapp iOS ToaddapackagedependencytoyourXcodeproject,selectFile>SwiftPackages>AddPackageDependencyandenteritsrepositoryURL.Youcanalsonavigatetoyourtarget’sGeneralpane,andinthe“Frameworks,Libraries,andEmbeddedContent”section,clickthe+button,selectAddOther,andchooseAddPackageDependency. EitheraddMapLibreGitHubdistributionURL(https://github.com/maplibre/maplibre-gl-native-distribution)orsearchformaplibre-gl-nativepackage. Choose"next".Xcodeshouldclonethedistributionrepositoryanddownloadthebinaries. Alternativeinstallation Youcanalsodownloadpre-buildfromreleasesinthisrepository. Howtocreateyourownbuild Sourcecodecheckout gitclone--recurse-submoduleshttps://github.com/maplibre/maplibre-gl-native.git Build MapLibreusestagsforitsAndroid&iOSreleasesbasedonSemVerversioning.Thisisusefulforcheckingoutaparticularreleasedversionforfeatureenhancmentsordebugging. Youcanlistavailabletagsbyissuingthecommandgittag,thenusetheresult #1.Obtainalistoftags,whichmatchestoreleaseversions gittag #2.SetaconveniencevariablewiththedesiredTAG #TAG=android-v9.2.1 #TAG=android-v9.4.2 TAG=ios-v5.11.0 #TAG=ios-v5.12.0-pre.1 #3.CheckoutaparticularTAG gitcheckouttags/$TAG-b$TAG #4.build,debugorenhancefeaturesbasedonthetag #clean,ifyouneedtotroubleshootbuilddependenciesbyusing`makeclean` Android MakesureyouhavesetAndroidSDKpathinplatform/android/local.properties,variablesdk.dir cdplatform/android BUILDTYPE=Releasemakeapackage Binariesareproducedinplatform/android/MapboxGLAndroidSDK/build/outputs/aar/MapboxGLAndroidSDK-release.aar PleaserefertoMapboxMapsSDKforAndroidfordetailedinstructions. iOS YoucanrunautomatedtestonaSimulatororDevicebychangingtotheSchemeiosappandchoosingProduct>Test(oruse⌘-U).Use⌘-9tonavigatetoReportstoseeresultsandbrowsethroughscreenshots.ThismethodoftestingshouldworkwellwithCItoolssuchasGitHubActions,XcodeServerBots,&AWSDeviceFarm. cdplatform/ios #makeandopentheXcodeworkspace makeiproj #makeXcodeworkspace,butruninheadlessmode makeiprojCI=1 #MakeFrameworks makexcframeworkBUILDTYPE=Release #test makeios-test #UITests #Youcanreviewuitestresults:$(IOS_OUTPUT_PATH)/Logs/Test makeios-uitest ThepackagingscriptwillproduceaMapbox.xcframeworkintheplatform/ios/build/ios/pkg/dynamicfolder. PleaserefertoMapboxMapsSDKforiOSfordetailedinstructions. MacOS cdplatform/ios makexpackage ThisproducesaMapbox.frameworkintheplatform/ios/build/macos/pkg/folder. PleaserefertoMapboxMapsSDKformacosfordetailedinstructions. About Theopen-sourcealternativetoMapboxGLNative.SDKsforiOS,Androidandotherplatforms maplibre.org Topics mapbox-gl vector-tiles mapbox mapbox-android-sdk mapbox-ios-sdk maptiler maplibre-gl Resources Readme License BSD-2-Clauselicense Codeofconduct Codeofconduct Stars 375 stars Watchers 35 watching Forks 99 forks Releases 15 ios-v5.12.2 Latest Dec2,2021 +14releases Sponsorthisproject   opencollective.com/maplibre LearnmoreaboutGitHubSponsors Packages0 Nopackagespublished Contributors228 +217contributors Languages C++ 43.0% Java 22.2% Objective-C++ 15.1% Objective-C 9.9% Kotlin 3.7% JavaScript 1.7% Other 4.4% Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?