Code Monkey home page Code Monkey logo

mapbox-gl-qml's Introduction

Unofficial Mapbox GL Native bindings for Qt QML

These bindings were originally developed for supporting Mapbox GL Native for platforms that lack Qt/QML 5.9 support, such as Sailfish OS, and application that are targeting Mapbox GL Native maps specifically. These bindings provide an alternative API that can be used to access Mapbox GL Native functionality in QML applications.

These bindings are used by few applications, such as Pure Maps and Laufhelden.

The code is based on QtLocation 5.9 Mapbox GL plugin, Qt/QML bindings developed as a part of Mapbox GL Native by Mapbox team before merging QML bindings with QtLocation. Please note that the origin of each file is noted in the comment at the top of the file.

Since QtLocation 5.9 is distributed with LGPL3.0, the code written for these bindings is distributed with the same license. The original code developed as a part of Mapbox GL Native has a license at https://github.com/mapbox/mapbox-gl-native/blob/master/LICENSE.md

For Sailfish, the bindings are available as a package at OpenRepos. For desktop Linux, unless packaged for your distribution, compilation from source is needed. Instructions for compilation are here

The description of API: api.md

Demo for Sailfish OS is at the separate repository: https://github.com/rinigus/mapbox-demo-sfos

Included demo (app subfolder) is for C++. Note that if the plugin is installed in the system, its easier to use it from QML directly. Just add import MapboxMap 1.0 to your QML and you would have access to it without any C++ code requirements.

To use Mapbox GL tiles and styles provided by Mapbox, please register on their site and obtain access key. The key can be either used to specify accessToken property of MapboxMap (see API description) or using environment variable MAPBOX_ACCESS_TOKEN.

mapbox-gl-qml's People

Contributors

rinigus avatar otsaloma avatar jdrescher2006 avatar puretryout avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.