技术控

    今日:36| 主题:49507
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Customizable vector maps with the Mapbox Qt SDK

[复制链接]
Alone寥落 发表于 2016-10-5 03:24:58
121 3

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Mapbox is a mapping platform that makes it easy to integrate location into any mobile and online application. We are pleased to showcase the Mapbox Qt SDK as a target platform for our open source vector maps rendering engine. Our Qt SDK is a key component in Mapbox Drive , the first lane guidance map designed for car companies to control the in-car experience. The Qt SDK also brings high quality, OpenGL accelerated and customizable maps to Qt native and QtQuick.
              QML: Properties     QML: Runtime style                    
Customizable vector maps with the Mapbox Qt SDK-1 (experience,companies,designed,separate,guidance)


Customizable vector maps with the Mapbox Qt SDK-2 (experience,companies,designed,separate,guidance)
             The combination of Qt and Yocto is perfect for bringing our maps to a whole series of embedded devices, ranging from professional NVIDIA and i.MX6 based boards to the popular Raspberry Pi 3.
   As part of our Mapbox Qt SDK , we expose Mapbox GL to Qt in two separate APIs:
  
       
  • QMapboxGL – implements a C++03x-conformant API that has been tested from Qt 4.7 onwards (Travis CI currently builds it using both Qt 4 and Qt 5).   
  • QQuickMapboxGL – implements a Qt Quick (QML) item that can be added to a scene. Because QQuickFramebufferObject has been added in Qt version 5.2, we support this API from this version onwards. The QML item interface matches theQt Map QML type almost entirely, making it easy to exchange from the upstream solution.  
   QMapboxGL and QQuickMapboxGL solve different problems. The former is backwards-compatible with previous versions of Qt and is easily integrated into pure C++ environments. The latter takes advantage of Qt Quick’s modern user interface technology, and is the perfect tool for adding navigation maps on embedded platforms. So far we have been testing our code on Linux and macOS desktops, as well as on Linux based embedded devices.
  Mapbox is on a joint effort with the Qt Company to make the Mapbox Qt SDK also available through the official Qt Location module – we are aligning APIs to make sure Mapbox-specific features like runtime styles are available.
   QQuickMapboxGL API matchesQt’s Map QML Type, as you can see from the example below:
  [code]import QtPositioning 5.0
import QtQuick 2.0
import QtQuick.Controls 1.0

import QQuickMapboxGL 1.0

ApplicationWindow {
    width: 640
    height: 480
    visible: true

    QQuickMapboxGL {
        anchors.fill: parent

        parameters: [
            MapParameter {
                property var type: "style"
                property var url: "mapbox://styles/mapbox/streets-v9"
            },
        ]

        center: QtPositioning.coordinate(60.170448, 24.942046) // Helsinki
        zoomLevel: 14
    }   
}[/code]  Mapbox Qt SDK is currently in beta stage. We’re continuously adding new features and improving documentation is one of our immediate goals. Your patches and ideas are always welcome!
   We also invite you to join us next month at Qt World Summit 2016 and contribute to Mapbox on GitHub .
友荐云推荐




上一篇:Online tool takes the guesswork out of CSS media queries
下一篇:Stop Coding Machine Learning Algorithms From Scratch
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

中老年女装 发表于 2016-10-15 13:29:16
过去的一页,能不翻就不要翻,翻落了灰尘会迷了双眼。
回复 支持 反对

使用道具 举报

jiang_tk 发表于 2016-10-15 16:45:21
我和我的小伙伴都惊呆了!
回复 支持 反对

使用道具 举报

玩命猜 发表于 2016-10-19 08:23:02
看帖、回帖、拿分、走人
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表