halset/mapbox-gl-native


Render Mapbox styles in mobile, desktop, and node applications using C++ and OpenGL https://mapbox.com/mobile

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.halset:mapbox-gl-native:'
	}
	dependencies {
		implementation("com.github.halset:mapbox-gl-native:")
	}
	<dependency>
	    <groupId>com.github.halset</groupId>
	    <artifactId>mapbox-gl-native</artifactId>
	    <version></version>
	</dependency>

                            
    libraryDependencies += "com.github.halset" % "mapbox-gl-native" % ""
        
        

                            
    :dependencies [[com.github.halset/mapbox-gl-native ""]]
        
        

Readme


Mapbox GL Native

A library for embedding interactive, customizable vector maps into native applications on multiple platforms. It takes stylesheets that conform to the Mapbox GL Style Specification, applies them to vector tiles that conform to the Mapbox Vector Tile Specification, and renders them using OpenGL. Mapbox GL JS is the WebGL-based counterpart, designed for use on the Web.

The Mapbox GL ecosystem

This repository hosts the cross-platform Mapbox GL Native library, plus convenient SDKs for several platforms. The cross-platform library comes with a GLFW-based demo application for Ubuntu Linux and OS X. The SDKs target the usual languages on their respective platforms:

SDK | Languages | Build status ----|-----------|------------- Mapbox GL Native | C++14 | Travis Coverage Status Mapbox Android SDK | Java | Bitrise Mapbox iOS SDK | Objective-C or Swift | Bitrise Mapbox OS X SDK | Objective-C or Swift | Bitrise node-mapbox-gl-native | Node.js | Linux / OS X

Additional Mapbox GL Native–based libraries are developed outside of this repository:

If your platform or hybrid application framework isn’t listed here, consider embedding Mapbox GL JS using the standard Web capabilities on your platform.