GithubHelp home page GithubHelp logo

uranusjr / qtmapkit Goto Github PK

View Code? Open in Web Editor NEW
53.0 13.0 30.0 15 KB

Google Map API for Qt (C++).

License: BSD 3-Clause "New" or "Revised" License

C++ 81.14% JavaScript 11.94% C 2.14% QMake 3.61% HTML 1.16%

qtmapkit's Introduction

QtMapKit

Google Map API for Qt (C++).

Why QtMapKit?

Qt, unlike many other modern GUI frameworks, lacks map support. With the brilliant Qt WebKit Bridge, we have access to the probably most advanced Map in the world via its JavScript API, but I still find myself repeating myself way too many times copying JavaScript and HTML files from project to project just to have a simple map.

That's why I start this project. QtMapKit intends to be a works-out-of-the-box library that wraps everyday uses of the Google Map JavaScript API into a QWidget, bridging accessors and events to make it easier for Qt code interact with the JavaScript map. Some data classes are also made to represent geographic information, as an attempt to make the integration more seamless.

How to Get Started

  • Download the source code
  • Run qmake and then make. This builds both the library and the demo.
  • make install to install the library into /usr/lib.

Note: Currently the installation only works on Unix-like OSs. You need to manually modify src.pro to make it work with Windows.

Documentation is currently lacking, as my current aim is to complete most of the API first. You can take a look at the demo project to see how the map works. Most of the signals and acessors are merely wrappers to the Google Map JavaScript API v3, so you should be able to get some idea of how things work by comparing QMMapView.h to Google's documentation if you are familiar with it already.

Dependency

  • Qt 4 or greater with WebKit support.
  • Internet connection.

Notes: Satellite View

You need to have a JPEG decoder if you want to use the satellite view, so that satellite images can be decoded. This means that you need to include the qjpeg plugin from the plugins/imageformats directory, either by compiling them statically, or bundle them with your executable when you deploy. Refer to the official documentation to find out how plugins work.

Thanks to @crayfellow for reporting this.

License

BSD 3-clause. See contents of LICENSE.

qtmapkit's People

Contributors

uranusjr avatar

Stargazers

allRight avatar kiwymonzy  avatar  avatar Hamza ARBI avatar Abel Geressu avatar  avatar  avatar Le Thien Duc avatar  avatar  avatar Jorge Brunal avatar  avatar  avatar Blue3A avatar TanLHHHH avatar alex avatar walt avatar Jaedong Kim avatar ccf19881030.github.io avatar minhao avatar Mohamed Saher avatar Aurélien avatar rick luo avatar bingoWu avatar qiee avatar  avatar Ali avatar  avatar Farhan Haider avatar  avatar David Isaksson avatar Jesse Talavera avatar Zeyu Wang avatar Adam Schubert avatar Tairan Liu avatar wenglihong avatar Shrikant Dhumal avatar sprhawk avatar José Barreto Teixeira de Paula avatar Matias Insaurralde avatar Stefano Cieri avatar  avatar Igor Aleksandrov avatar Oskar Pyke avatar alstonChang avatar Stefan avatar David Hodo avatar  avatar 梅迎朝 avatar  avatar Ferit Cubukcuoglu avatar  avatar Rangel Reale avatar

Watchers

 avatar James Cloos avatar Massimo Costa avatar  avatar ccf19881030.github.io avatar Chatchai Daecha avatar Erkan Güzeler avatar Patrick avatar José Barreto Teixeira de Paula avatar João Pedro Curti avatar Oskar Pyke avatar  avatar  avatar

qtmapkit's Issues

Satellite imagery

Nicely done! Have you run into an issue where the satellite imagery does not appear? Everything else works. For us it is consistent on Windows 8.1. I tried simply showing maps.google.com in the QWebView and it did the same thing, switch over to Satellite and it is blank with everything else working. So I know it is not exclusive to showing the map using local HTML from Qt resources.

I tried other user agents and checked the Inspector. The requests for the tiles go out, and get a 200 OK response with a non-zero content length, but somehow the JPEG's are not available.

cheers,
Patrick

QT 5.7 開發Google Map

你好:
想請問有辦法在QT5.7以上 ,使用google map API嗎? 目前有將google map 的html加到QT中
project,但目前找不到支援QT5.7 的 C++ API ,大部分的都是支援舊版的QT4.x。
謝謝!!

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.