GithubHelp home page GithubHelp logo

ksmadhu / qtmapkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uranusjr/qtmapkit

0.0 1.0 0.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.

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.