Skip to main content

Interactive map widget for PySyde/PyQt4

Project description

python-qgmap

Qt Google Map widget for PySide/PyQt6

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

Usage Example

Installation

By using pip:

$ pip3 install qgmap

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 PyQt6

By default the classes use PySide, but the code works for PyQt6 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-1.0.0.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qgmap-1.0.0-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qgmap-1.0.0.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for qgmap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 45991f3a4ae2fa3c56cafa66b080c3d4baa0048285ee9dd87f00a3ec4c2fbb54
MD5 a67954f62a2d2e0d2213eec50be24707
BLAKE2b-256 51515d959f2a59a6ad86f3ad5ba943bcf4b6443dd1a427b582af12b6c3cc8902

See more details on using hashes here.

File details

Details for the file qgmap-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: qgmap-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for qgmap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24bdb3d7f09f7809fbd2d584d6a30ecba83fec6dc7c831c83d9cfcccc7c4909a
MD5 d7169cccc734ca702558a4e6f7bc7d1e
BLAKE2b-256 ee3a834639570362aa08df9446b90eeb58853b175497e50846b13c888ad438b6

See more details on using hashes here.

Supported by

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