All Projects → maplibre → maplibre-gl-native-distribution

maplibre / maplibre-gl-native-distribution

Licence: other
An open-source fork of Mapbox GL SDK for iOS distributed via the Swift Package Manager.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to maplibre-gl-native-distribution

YMFF
Feature management made easy.
Stars: ✭ 26 (-10.34%)
Mutual labels:  swift-packages
flutter-maplibre-gl
A flutter package for showing customizable vector/raster maps with Maplibre GL (forked from tobrun/flutter-mapbox-gl)
Stars: ✭ 69 (+137.93%)
Mutual labels:  maplibre
TermiNetwork
🌏 A zero-dependency networking solution for building modern and secure iOS, watchOS, macOS and tvOS applications.
Stars: ✭ 80 (+175.86%)
Mutual labels:  swift-packages
vintage
[UNMAINTED] command-line tool to check for outdated Swift Package Manager dependencies
Stars: ✭ 33 (+13.79%)
Mutual labels:  swift-packages
vue-mapbox-map
A minimalist Vue component wrapping Mapbox GL or MapLibre GL for dynamic interaction!
Stars: ✭ 26 (-10.34%)
Mutual labels:  maplibre
openmaptiles-ios-demo
iOS demo app for showing offline maps for mobile.
Stars: ✭ 19 (-34.48%)
Mutual labels:  maplibre

MapLibre GL Native SDK for iOS

Requires Xcode 12 Requires Swift 5.3 SPM compatible

MapLibre GL Native is a community led fork derived from mapbox-gl-native prior to their switch to a non-OSS license. The fork also includes Maps SDK for iOS and macOS (forked from mapbox-gl-native-ios) and Android SDK (forked from mapbox-gl-native-android).


Add MapLibre to your Project

To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL. See Adding Package Dependencies to Your App.

Swift Packages Development

You can override the MapLibre package dependency and edit its content by adding it as a local package. See Editing a Package Dependency as a Local Package.

For example, you can add this to Package.swift, if you are interested in testing the Mapbox framework with another framework.

products: [
    .library( name: "Mapbox", targets: ["Mapbox"]),
    .library( name: "MetalANGLE", targets: ["MetalANGLE"])
],
dependencies: [ ],
// target path should be relative to package root
targets: [
    .binaryTarget(name: "Mapbox", path: "Mapbox.xcframework"),
    .binaryTarget(name: "MetalANGLE", path: "MetalANGLE.xcframework")
]

Other References from developer.apple.com

Test MapLibre with a Swift Playgrounds

When you download this repo there is a Swift Playground that allows you to change the style and play around with a very simple rendered map.

  • Download this repo
  • Navigate to the folder where you cloned, and open Package.swift in at least Xcode 12.
  • Run Playground by choosing Editor > Run Playground or ⇧⌘⏎
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].