Skip to main content

Google Map widget for PySyde/PyQt4

Project description

Qt Google Map widget for PySide/PyQt4

Features:

  • Specify locations either by latitude, longitude pairs or street addresses by means of GeoCoding

  • Programatically centering, zooming and manipulate markers

  • Flexible marker properties (ie. draggable, icon, title…)

  • Emits signals on user actions: dragged markers, pans or zooms

  • Easy to extend, thanks to the painless python-qt-javascript interface

Installation

By using pip:

$ pip3 install qgmap

From source:

python3 setup.py --install

Usage

Two main classes are provided:

  • qgmap.GeoCoder: Retrieves geo-coordinates (latitude, longitude) from street addresses

  • qgmap.QGoogleMap: A WebView widget containing a GoogleMap, with some convenience accessors to manage center, zoom, markers…

See the main example code at qgmap-example.py

Using it with PyQt4

By default the classes use PySide, but the code works for PyQt4 if you set to False the usePySide module variable by hand.

Any suggestion to make this less hacky is welcome.

Acknoledgements

This Python code has been inspired in Henrik Hartz’s C++ example code:

https://blog.qt.digia.com/blog/2008/07/03/putting-qtwebkit-to-use-with-google-maps/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qgmap-0.2.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file qgmap-0.2.tar.gz.

File metadata

  • Download URL: qgmap-0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for qgmap-0.2.tar.gz
Algorithm Hash digest
SHA256 f6c102dfcf8f7458c1a5cfe7e37559fd07f0bea65fecccb092ccfed5941297d0
MD5 92e263a7147e9f349def7e4bb57a2acc
BLAKE2b-256 17eeb3cb33b919803712597c9581cb747e6d85a7663fbe0ff04acffc0e0053da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page